build: remove dev dependencies for production docker build

This commit is contained in:
sct
2020-11-24 10:39:12 +00:00
parent 0962392e39
commit f8c01fbc83

View File

@@ -3,7 +3,10 @@ FROM node:12.18-alpine
COPY . /app
WORKDIR /app
RUN yarn && \
RUN yarn --frozen-lockfile && \
yarn build
# remove development dependencies
RUN npm prune --production
CMD yarn start