frontend-sample/Dockerfile

10 lines
170 B
Docker
Raw Normal View History

2020-04-14 13:53:51 +00:00
FROM node:lts-alpine as builder
WORKDIR /data
COPY . .
RUN npm i \
&& npm run build
FROM nginx:alpine
WORKDIR /
COPY --from=builder /data/build/ /usr/share/nginx/html