14 lines
281 B
Docker
14 lines
281 B
Docker
|
FROM node:current-alpine AS builder
|
||
|
|
||
|
COPY package.json package-lock.json webpack.config.js /build/
|
||
|
COPY index.html /build/dist/
|
||
|
COPY src /build/src/
|
||
|
|
||
|
WORKDIR /build
|
||
|
RUN npm install && npm run build
|
||
|
|
||
|
|
||
|
FROM nginx:stable-alpine
|
||
|
|
||
|
COPY --from=builder /build/dist /usr/share/nginx/html/
|