diff --git a/backend/Dockerfile b/backend/Dockerfile index b256f83a..e2664004 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,7 +1,7 @@ FROM artifacts.developer.gov.bc.ca/docker-remote/node:lts-alpine3.13 -RUN mkdir -p /logs -RUN chmod 755 /logs +RUN mkdir -p /logs \ + && chmod 755 /logs WORKDIR /opt/app-root/src RUN ln -s /logs . @@ -10,5 +10,15 @@ COPY package*.json ./ RUN npm ci COPY . /opt/app-root/src + +# Installs latest Chromium package. +RUN apk upgrade --no-cache --available \ + && apk add --no-cache dbus chromium chromium-chromedriver + +ENV CHROME_BIN=/usr/bin/chromium-browser \ + CHROME_PATH=/usr/lib/chromium/ + +ENV CHROMIUM_FLAGS="--disable-software-rasterizer --disable-dev-shm-usage --no-sandbox --disable-gpu" + EXPOSE 443 8080 CMD ["npm", "start"]