setting enviroments

This commit is contained in:
2022-12-18 19:41:40 -03:00
parent 91951f50e8
commit 29bfa05ffb

View File

@@ -1,6 +1,5 @@
FROM alpine:latest as build
ARG REACT_APP_ENV_MODE
RUN echo "Oh dang look at that $some_variable_name"
RUN apk add --update nodejs npm
RUN npm install --global yarn
@@ -10,7 +9,7 @@ COPY [".", "/usr/src"]
WORKDIR "/usr/src"
RUN yarn
RUN yarn build
RUN yarn build ${REACT_APP_ENV_MODE}
FROM nginx:1.23.1-alpine
EXPOSE 80