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