From 4db9a52ce59795684dc258556033786fcf8e6abe Mon Sep 17 00:00:00 2001 From: Vinod Bangera <vinod.bangera@niveussolutions.com> Date: Mon, 29 Apr 2024 13:46:31 +0000 Subject: [PATCH] Delete Dockerfile --- Dockerfile | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index d7bb48a..0000000 --- a/Dockerfile +++ /dev/null @@ -1,32 +0,0 @@ -FROM node:18-alpine as react-build - -# Create app directory -WORKDIR /usr/src/app - -# Install app dependencies -COPY package*.json ./ - -# Bundle app source -COPY . . - -# Install dependencies -RUN yarn - -# Build -RUN yarn build - -# Environment -FROM nginx:alpine -COPY nginx.conf /etc/nginx/conf.d/configfile.template -COPY --from=react-build /usr/src/app/build /usr/share/nginx/html - -ENV PORT 3000 -ENV HOST 0.0.0.0 - - -# Expose port 3000 -EXPOSE 3000 - -# Run the app -# CMD [ "npm", "start" ] -CMD sh -c "envsubst '\$PORT' < /etc/nginx/conf.d/configfile.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'" \ No newline at end of file -- GitLab