Skip to content

Commit

Permalink
Update base image to use node 18.18.2
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Ho <[email protected]>
  • Loading branch information
jujaga committed Oct 20, 2023
1 parent 26d3052 commit 4443124
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
FROM docker.io/bcgovimages/alpine-node-libreoffice:1.0.7
FROM docker.io/bcgovimages/alpine-node-libreoffice:18.18.2

ARG APP_ROOT=/opt/app-root/src
ENV NO_UPDATE_NOTIFIER=true \
APP_PORT=3000
ENV APP_PORT=8080 \
NO_UPDATE_NOTIFIER=true
WORKDIR ${APP_ROOT}

# NPM Permission Fix (already applied in base image)

# Install Application
COPY . .
RUN npm ci
RUN chown -R 1001:0 ${APP_ROOT}
USER 1001
RUN npm ci --omit=dev

EXPOSE ${APP_PORT}
CMD ["npm", "run", "start"]

0 comments on commit 4443124

Please sign in to comment.