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

Update Dockerfile

parent 7548f7b7
FROM node:16 FROM node:14.15.1 as build-stage
WORKDIR /app
WORKDIR /usr/src/app COPY package*.json /app/
COPY package*.json ./
RUN npm install RUN npm install
#RUN npm install --silent COPY ./ /app/
#RUN npm install react-scripts@3.4.1 -g --silent 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 80
EXPOSE 3000 CMD ["nginx", "-g", "daemon off;"
CMD [ "node", "app.js" ] \ No newline at end of file
#CMD ["npm", "start"]
\ 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