11 lines
282 B
Docker
11 lines
282 B
Docker
FROM node:8 as build
|
|
WORKDIR /build
|
|
COPY package.json package-lock.json .
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM nginx:mainline as runtime
|
|
COPY --from=build /build /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
COPY default.conf /etc/nginx/conf.d/default.conf |