FROM node:14.4.0 AS builder
WORKDIR /app
RUN git clone https://github.com/yefei0423/react-app.git && cd react-app && yarn install && yarn build
# FROM bitnami/nginx
FROM nginxinc/nginx-unprivileged:stable-alpine
COPY --from=builder /app/react-app/build .
FROM node:14.4.0 AS builder
WORKDIR /app
RUN git clone https://github.com/yefei0423/react-app.git && cd react-app && yarn install && yarn build
# FROM bitnami/nginx
FROM nginxinc/nginx-unprivileged:stable-alpine
WORKDIR /usr/share/nginx/html
COPY --from=builder /app/react-app/build .
USER nginx
Content type
Image
Digest
Size
9.5 MB
Last updated
over 5 years ago
docker pull dlwxin/hello-react