Skip to content

Commit

Permalink
feat: opti image docker
Browse files Browse the repository at this point in the history
  • Loading branch information
owalid committed Oct 26, 2023
1 parent 6784265 commit 01316fa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ ENV NUXT_BASE_API_URL https://adaptaviz.fr/api
RUN npm install && \
npm run build && \
npm prune --production && \
npm cache clean --force && \
apk del g++ make py3-pip && \
npm cache clean --force

USER root

RUN apk del g++ make py3-pip && \
apk cache clean && \
rm -rf /var/cache/apk/* && \
rm -rf package-lock.json

USER app_user

CMD ["npm", "start"]

0 comments on commit 01316fa

Please sign in to comment.