Skip to content

Commit

Permalink
refactor(docker): reduce size of image
Browse files Browse the repository at this point in the history
  • Loading branch information
vanodevium authored Nov 26, 2024
1 parent d52ed25 commit f2d3995
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
FROM node:20-alpine
ARG WEBAPI_PORT
WORKDIR /app
COPY ./package*.json ./
RUN npm ci
COPY ./ ./
RUN npm ci --no-audit && npm cache clean --force
EXPOSE $WEBAPI_PORT
USER node
CMD ["node", "./main.mjs"]

0 comments on commit f2d3995

Please sign in to comment.