mirror of
https://github.com/BradNut/docker-react
synced 2025-09-08 17:40:19 +00:00
9 lines
170 B
Docker
9 lines
170 B
Docker
|
|
FROM node:alpine as builder
|
||
|
|
WORKDIR '/app'
|
||
|
|
COPY package.json .
|
||
|
|
RUN npm install
|
||
|
|
COPY . .
|
||
|
|
RUN npm run build
|
||
|
|
|
||
|
|
FROM nginx
|
||
|
|
COPY --from=builder /app/build /usr/share/nginx/html
|