Commit 9a9a7f60 authored by Waleed Naeem's avatar Waleed Naeem

Update Dockerfile

parent 7548f7b7
FROM node:16
WORKDIR /usr/src/app
COPY package*.json ./
FROM node:14.15.1 as build-stage
WORKDIR /app
COPY package*.json /app/
RUN npm install
#RUN npm install --silent
#RUN npm install react-scripts@3.4.1 -g --silent
COPY ./ /app/
RUN npm run build
COPY . .
FROM nginx:1.15
COPY --from=build-stage /app/build/ /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080
EXPOSE 3000
CMD [ "node", "app.js" ]
#CMD ["npm", "start"]
\ No newline at end of file
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment