Updated packages and Dockerfile

This commit is contained in:
Sebastian Seedorf
2020-11-19 23:13:18 +01:00
parent 5c31dc285a
commit cfb23f309a
9 changed files with 168 additions and 181 deletions

View File

@@ -22,7 +22,13 @@ USER appuser
COPY . .
# install
USER root
RUN . /etc/profile && apk add --virtual .npm-install-virt --no-cache git
USER appuser
RUN npm run install-prod
USER root
RUN apk del .npm-install-virt
USER appuser
ENV NODE_ENV production
# cleanup