Update Dockerfile to fix npm warnings

This commit is contained in:
Jonas Lochmann 2022-10-31 01:00:00 +01:00
parent d1cc48a208
commit 4ab97d7bf3
No known key found for this signature in database
GPG key ID: 8B8C9AEE10FA5B36

View file

@ -9,7 +9,7 @@ COPY package.json package-lock.json tsconfig.json .eslintignore .eslintrc.js Rea
COPY src/ /usr/src/app/src/
COPY scripts/ /usr/src/app/scripts/
COPY other/ /usr/src/app/other/
RUN mkdir -p docs/schema && npm install --no-optional && npm run build && npm prune --production && rm -rf ./src
RUN mkdir -p docs/schema && npm install --exclude=optional && npm run build && npm prune --omit=dev && rm -rf ./src
# Start the App
EXPOSE 8080