Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
Quotation-App-Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Waleed Naeem
Quotation-App-Frontend
Commits
9a9a7f60
Commit
9a9a7f60
authored
Mar 09, 2022
by
Waleed Naeem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile
parent
7548f7b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
Dockerfile
Dockerfile
+10
-11
No files found.
Dockerfile
View file @
9a9a7f60
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment