Skip to content

Commit

Permalink
Specify Playwright browser during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hulloitskai committed Dec 12, 2023
1 parent 84d4d3f commit fea28b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN git clone --depth 1 https://github.com/nodenv/node-build.git \
&& node-build "$(cat .node-version)" /usr/local \
&& npm install --global yarn \
&& npm cache clean --force \
&& rm -rf ./node-build \
&& rm -rf ./node-build "$(which node-build)" \
&& node --version && npm --version && yarn --version

# Install Python and Poetry
Expand All @@ -31,7 +31,7 @@ RUN git clone --depth 1 --no-checkout https://github.com/pyenv/pyenv.git \
&& PREFIX=/usr/local ./python-build/install.sh \
&& python-build "$(cat .python-version)" /usr/local \
&& pip3 install --no-cache-dir poetry \
&& rm -rf ./python-build \
&& rm -rf ./python-build "$(which python-build)" \
&& python3 --version && pip3 --version

# Install Ruby and Bundler
Expand All @@ -42,7 +42,7 @@ RUN git clone --depth 1 https://github.com/rbenv/ruby-build.git \
&& PREFIX=/usr/local ./ruby-build/install.sh \
&& mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME" \
&& ruby-build "$(cat .ruby-version)" /usr/local \
&& rm -rf ./ruby-build \
&& rm -rf ./ruby-build "$(which ruby-build)" \
&& ruby --version && gem --version && bundle --version

# Install runtime dependencies
Expand All @@ -64,8 +64,8 @@ RUN yarn global add playwright \

# Install NodeJS dependencies
COPY package.json yarn.lock ./
ENV NODE_ENV="$RAILS_ENV"
RUN yarn install && yarn cache clean
ENV NODE_ENV=production
RUN yarn install --production && yarn cache clean

# Install Python dependencies
COPY pyproject.toml poetry.toml poetry.lock ./
Expand Down
2 changes: 1 addition & 1 deletion bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ FileUtils.chdir APP_ROOT do

puts "\n=> Installing Playwright"
system! "bin/yarn global add playwright"
system! "playwright install"
system! "playwright install chromium"

# puts "\n=> Copying sample files"
# unless File.exist?("config/database.yml")
Expand Down

0 comments on commit fea28b7

Please sign in to comment.