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 COPY . /app
WORKDIR /app WORKDIR /app
RUN yarn && \ RUN yarn --frozen-lockfile && \
yarn build yarn build
# remove development dependencies
RUN npm prune --production
CMD yarn start CMD yarn start

Loading…
Cancel
Save