-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update base image to use node 18.18.2
Signed-off-by: Jeremy Ho <[email protected]>
- Loading branch information
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |