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.
 
 

20 lines
489 B

FROM node:12
WORKDIR /react-docker
COPY ./package*.json ./
ENV PATH /app/node_modules/.bin:$PATH
RUN npm install
RUN npm i react@16.14.0
RUN npm i react-scripts
RUN npm audit fix
EXPOSE 8445
# Comment as needed (Production / Dev)
# [PROD] Use for Production
# COPY . . # uncomment prod
# [DEV] Live Reload
RUN mkdir -p /react-docker/src # comment for prod
RUN mkdir -p /react-docker/public # comment for prod
CMD PORT=8445 npm start #--host 0.0.0.0 --port 3000 --disableHostCheck true