Skip to content

Commit

Permalink
fix(dockerfile): copy necessary file when building (DIYgod#8008)
Browse files Browse the repository at this point in the history
* fix(dockerfile): copy necessary file when building

*when even bother deleting file...

* no console
  • Loading branch information
NeverBehave authored Aug 13, 2021
1 parent 2bfbaf3 commit c0b638c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 423 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ tmp
coverage
.env
yarn.lock
app-minimal/

.now
.vercel
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN if [ "$PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" = 0 ]; then \
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true && npm ci ;\
fi;

RUN node tools/minify-docker.js
RUN node scripts/docker/minify-docker.js

FROM node:14-slim as app

Expand All @@ -34,7 +34,7 @@ ARG PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1;

WORKDIR /app
COPY . /app
COPY --from=dep-builder /app/node_modules /app/node_modules
COPY --from=dep-builder /app/app-minimal/node_modules /app/node_modules
COPY --from=dep-builder /usr/bin/dumb-init /usr/bin/dumb-init

RUN if [ "$PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" = 0 ]; then \
Expand Down
Loading

0 comments on commit c0b638c

Please sign in to comment.