Backend for Custom Frontend OSPRO Surveyor Indonesia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
419 B

# Stage 1
FROM node:14 as build-stage
WORKDIR /react-docker
COPY package.json .
RUN npm install
COPY . .
#ARG REACT_APP_API_BASE_URL
#ENV REACT_APP_API_BASE_URL=$REACT_APP_API_BASE_URL
RUN npm run build
# Stage 2
#FROM nginx:1.17.0-alpine
FROM nginx:alpine
COPY --from=build-stage /react-docker/build /usr/share/nginx/html
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD nginx -g 'daemon off;'