Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
inventory-promotion-react
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
Ascend
inventory-promotion-react
Commits
3c7004ab
Commit
3c7004ab
authored
May 07, 2021
by
Ben Anderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Docker and nginx config
parent
6c54474a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
Dockerfile
Dockerfile
+12
-0
nginx.conf
nginx/nginx.conf
+8
-0
No files found.
Dockerfile
0 → 100644
View file @
3c7004ab
FROM
node:14.16-alpine3.13 as build
WORKDIR
/app
ENV
PATH /app/node_modules/.bin:$PATH
COPY
. .
RUN
yarn
RUN
yarn build
FROM
nginx:stable-alpine
COPY
--from=build /app/build /usr/share/nginx/html
COPY
--from=build /app/nginx/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE
80
CMD
["nginx", "-g", "daemon off;"]
nginx/nginx.conf
0 → 100644
View file @
3c7004ab
server
{
listen
80
;
location
/
{
root
/usr/share/nginx/html
;
index
index.html
index.htm
;
try_files
$uri
$uri
/
/index.html
=
404
;
}
}
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