We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feffb44 commit ce08398Copy full SHA for ce08398
Dockerfile
@@ -1,10 +1,10 @@
1
# Stage 1 - the build process
2
FROM node:latest as build-deps
3
WORKDIR /usr/src/app
4
-COPY package.json yarn.lock ./
5
-RUN yarn
+COPY package.json package-lock.json ./
+RUN npm install
6
COPY . ./
7
-RUN yarn build
+RUN npm run-script build
8
# Stage 2 - the production environment
9
FROM nginx:1.12-alpine
10
COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html
0 commit comments