We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9439346 commit 1766d76Copy full SHA for 1766d76
Dockerfile
@@ -1,12 +1,12 @@
1
FROM node:12 AS build
2
WORKDIR /usr/src/front
3
-COPY ./front .
+COPY ./front /usr/src/front/
4
RUN npm run build
5
6
FROM node:12
7
WORKDIR /usr/src/app
8
-COPY --from=build /usr/src/front/build ./build
9
-COPY package*.json ./
+COPY --from=build /usr/src/front/build /usr/src/app/build
+COPY package*.json /usr/src/app/
10
RUN npm install
11
-COPY . .
+COPY . /usr/src/app
12
CMD [ "npm", "start" ]
0 commit comments