Skip to content

Commit ce08398

Browse files
committed
Update dockerfile
1 parent feffb44 commit ce08398

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Stage 1 - the build process
22
FROM node:latest as build-deps
33
WORKDIR /usr/src/app
4-
COPY package.json yarn.lock ./
5-
RUN yarn
4+
COPY package.json package-lock.json ./
5+
RUN npm install
66
COPY . ./
7-
RUN yarn build
7+
RUN npm run-script build
88
# Stage 2 - the production environment
99
FROM nginx:1.12-alpine
1010
COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html

0 commit comments

Comments
 (0)