docker_examples/react/Dockerfile
2021-09-16 16:35:04 +02:00

14 lines
234 B
Docker

FROM node:15.4 AS build
WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn install
COPY . .
RUN yarn build
FROM nginx:latest
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/build/ /usr/share/nginx/html