From a980569769959d3224f570091e9b190818def4a0 Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Thu, 22 Dec 2022 23:04:53 -0300 Subject: [PATCH] added Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ea18ea7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM alpine:latest as build + +RUN apk add --update nodejs npm +RUN npm install --global yarn + +COPY ['.', '/usr/src'] +WORKDIR /usr/src + +RUN yarn +RUN yarn build REACT_APP_ENV_MODE=${REACT_APP_ENV_MODE} + +FROM nginx:1.23.1-alpine +EXPOSE 80 +COPY ./docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf +COPY --from=build /usr/src/build /usr/share/nginx/html +CMD ["nginx", "-g", "daemon off;"]