diff --git a/Dockerfile b/Dockerfile index a3960032..21c55c84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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