Skip to content

Commit 1766d76

Browse files
committed
dockerfile alternative
1 parent 9439346 commit 1766d76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
FROM node:12 AS build
22
WORKDIR /usr/src/front
3-
COPY ./front .
3+
COPY ./front /usr/src/front/
44
RUN npm run build
55

66
FROM node:12
77
WORKDIR /usr/src/app
8-
COPY --from=build /usr/src/front/build ./build
9-
COPY package*.json ./
8+
COPY --from=build /usr/src/front/build /usr/src/app/build
9+
COPY package*.json /usr/src/app/
1010
RUN npm install
11-
COPY . .
11+
COPY . /usr/src/app
1212
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)