16 lines
265 B
Docker
16 lines
265 B
Docker
FROM node:12 as build-stage
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json /app/
|
|
|
|
RUN npm install
|
|
|
|
COPY ./ /app/
|
|
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.15
|
|
COPY --from=build-stage /app/build/ /usr/share/nginx/html
|
|
COPY --from=build-stage /app/nginx.conf /etc/nginx/conf.d/default.conf
|