build: remove dev dependencies for production docker build

pull/183/head
sct 4 years ago
parent 0962392e39
commit f8c01fbc83

@ -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

Loading…
Cancel
Save