From 7c2d7597a3570d5d8e8f1677b060609faf9e0f0c Mon Sep 17 00:00:00 2001 From: razvanMiu Date: Thu, 7 Jan 2021 13:27:11 +0200 Subject: [PATCH] Added dependencies to docker image --- Dockerfile | 6 ++++-- entrypoint-prod.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 85b4a92b..e3eee012 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/entrypoint-prod.sh b/entrypoint-prod.sh index b8a5d4af..02a09697 100755 --- a/entrypoint-prod.sh +++ b/entrypoint-prod.sh @@ -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 "$@"