diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..d837876 --- /dev/null +++ b/.env.development @@ -0,0 +1,21 @@ +REACT_APP_US_ADDRESS="USA: 32 Oatgrass Dr, Grayson GA 30017" +REACT_APP_US_PHONE="(415) 251 7583" +REACT_APP_SUPPORT_EMAIL="support@mermsemr.com" +REACT_APP_YEAR=2023 +REACT_APP_ANDROID_URL="https://play.google.com/store/apps/details?id=com.mermsemr.myfit" +REACT_APP_IOS_URL="https://play.google.com/store/apps/details?id=com.mermsemr.myfit" + + +REACT_APP_APPSITE="https://dev142.users.myfit.mermsemr.com/login" +# " https://mermsemr.com" +#REACT_APP_APPSITE="http://localhost:7012" + +# Social Media Links +REACT_APP_FACEBOOK="https://www.facebook.com/profile.php?id=100066498622246" +REACT_APP_TWITTER="https://twitter.com/fluxtra" + + +REACT_APP_AUX_ENDPOINT="https://devapi.mermsemr.com/en/desktop/api/v2/myfit" +REACT_APP_FORM_TIMEOUT=10000 +REACT_APP_MAX_MESSAGE_LENGHT=300 +REACT_APP_BLOGSITE="https://blog.mermsemr.com/" diff --git a/Dockerfile b/Dockerfile index 83c4d6c..7c96859 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ # pull the base image FROM node:alpine +# Build args +ARG NODE_ENV + # set the working direction #WORKDIR /app WORKDIR /usr/src/app @@ -8,6 +11,7 @@ WORKDIR /usr/src/app # add `/app/node_modules/.bin` to $PATH # ENV PATH /app/node_modules/.bin:$PATH ENV PATH /usr/src/app/node_modules/.bin:$PATH +ENV NODE_ENV=$NODE_ENV # install app dependencies COPY package.json ./ @@ -20,4 +24,4 @@ RUN npm install COPY . ./ # start app -CMD ["npm", "start"] \ No newline at end of file +CMD ["npm", "start"] diff --git a/docker-compose.yml b/docker-compose.yml index b27a1e4..502c784 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,8 @@ services: build: context: . dockerfile: Dockerfile + args: + - NODE_ENV=production restart: unless-stopped ports: - 7010:3000 @@ -20,6 +22,7 @@ services: - apigateway.wrenchboard.app.lotus.fluxtra.net:172.31.4.19 environment: - CHOKIDAR_USEPOLLING=true + - NODE_ENV=${NODE_ENV:-production} volumes: src: - public: \ No newline at end of file + public: