build(docker): reduce image size (#2392)

pull/2367/head^2
TheCatLady 3 years ago committed by GitHub
parent d2241a4187
commit b4b2acd4fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,7 +26,7 @@ RUN yarn build
# remove development dependencies # remove development dependencies
RUN yarn install --production --ignore-scripts --prefer-offline RUN yarn install --production --ignore-scripts --prefer-offline
RUN rm -rf src server RUN rm -rf src server .next/cache
RUN touch config/DOCKER RUN touch config/DOCKER
@ -37,7 +37,7 @@ FROM node:14.18-alpine
WORKDIR /app WORKDIR /app
RUN apk add --no-cache tzdata tini RUN apk add --no-cache tzdata tini && rm -rf /tmp/*
# copy from build image # copy from build image
COPY --from=BUILD_IMAGE /app ./ COPY --from=BUILD_IMAGE /app ./

Loading…
Cancel
Save