Skip to content

Commit a25cd49

Browse files
committed
Fix Dockerfile
1 parent fef93c9 commit a25cd49

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Dockerfile

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
FROM node:12.18.3 AS build
2-
3-
WORKDIR /usr/src/app
4-
5-
# Run yarn install early to allow a quick
6-
# rebuild if the package.json didn't change
7-
COPY package.json yarn.lock ./
8-
RUN yarn install --non-interactive && yarn cache clean
9-
10-
COPY src/ /usr/src/app/src/
11-
COPY crafty.config.js /usr/src/app/crafty.config.js
12-
13-
RUN yarn crafty:build
14-
151
FROM node:12.18.3
162

173
# Install extensions : zip, rar, imagick
@@ -36,9 +22,7 @@ COPY package.json yarn.lock ./
3622
RUN yarn install --production --non-interactive && yarn cache clean
3723

3824
# Copy files
39-
COPY --from=build /usr/src/app/dist/ /usr/src/app/dist/
4025
COPY public/ ./public/
41-
COPY pages/ ./pages/
4226
COPY server/ ./server/
4327
COPY src/ ./src/
4428
COPY comics next.config.js ./

0 commit comments

Comments
 (0)