Skip to content

Commit

Permalink
Added dependencies to docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Jan 7, 2021
1 parent ea14837 commit 7c2d759
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ FROM node:12-stretch-slim as build

ENV NODE_OPTIONS=--max_old_space_size=$MAX_OLD_SPACE_SIZE

RUN apt-get update -y \
&& apt-get install -y git bsdmainutils vim-nox mc \
RUN runDeps="nano openssl ca-certificates git bsdmainutils vim-nox mc libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb patch" \
&& apt-get update -y \
&& apt-get install -y --no-install-recommends $runDeps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN yarn global add mrs-developer
Expand Down
2 changes: 1 addition & 1 deletion entrypoint-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if [[ "$1" == "cypress"* ]]; then
RAZZLE_API_PATH=$RAZZLE_API_PATH yarn start &

cd /opt/frontend
exec bash -c "wait-on -t $TIMEOUT http://localhost:3000 && CYPRESS_API_PATH=$CYPRESS_API_PATH ./node_modules/cypress/bin/cypress run"
exec bash -c "wait-on -t $TIMEOUT http://localhost:3000 && NODE_ENV=production CYPRESS_API_PATH=$CYPRESS_API_PATH ./node_modules/cypress/bin/cypress run"
fi

exec "$@"

0 comments on commit 7c2d759

Please sign in to comment.