Skip to content

Commit

Permalink
trying new docker image to fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
SoLetsDev committed Aug 9, 2023
1 parent 2b731ff commit 4346367
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM artifacts.developer.gov.bc.ca/docker-remote/node:18.16.0-alpine3.17
FROM artifacts.developer.gov.bc.ca/docker-remote/node:16.20.0-alpine3.17

RUN mkdir -p /logs \
&& chmod 755 /logs
Expand All @@ -13,19 +13,13 @@ COPY . /opt/app-root/src

# Installs latest Chromium package.
RUN apk upgrade --no-cache --available \
&& apk add --no-cache dbus chromium chromium-chromedriver
&& apk add --no-cache dbus chromium chromium-chromedriver ghostscript

ENV CHROME_BIN=/usr/bin/chromium-browser \
CHROME_PATH=/usr/lib/chromium/ \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser \
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true

# Start compress-pdf requirements to run in alpine environment
RUN apk add --no-cache ghostscript

ENV GHOSTSCRIPT_PATH=/usr/bin/gs
# End compress-pdf requirements

GHOSTSCRIPT_PATH=/usr/bin/gs

EXPOSE 443 8080
CMD ["npm", "start"]

0 comments on commit 4346367

Please sign in to comment.