Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
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
吴迪
gs1
Commits
f15399c5
Commit
f15399c5
authored
Oct 30, 2022
by
Lyan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.wangtiansoft.com:10000/wudi/gs1
parents
4174a690
6b37eb70
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
Dockerfile
Dockerfile
+14
-11
nginx.conf
nginx.conf
+1
-1
No files found.
Dockerfile
View file @
f15399c5
FROM
nginx
# build stage
FROM
node:12-alpine as build-stage
#RUN rm -rf /usr/share/nginx/html/*
WORKDIR
/app
RUN
rm
-rf
/etc/nginx/conf.d/
*
COPY
package*.json ./
RUN
npm config
set
sass_binary_site https://npm.taobao.org/mirrors/node-sass
-g
&&
npm config
set
registry https://registry.npm.taobao.org
#COPY dist /usr/share/nginx/html
RUN
npm install
COPY
nginx.conf /etc/nginx/conf.d/
COPY
. .
RUN
npm run build
COPY
docker-entrypoint.sh /usr/local/bin/
# production stage
ENTRYPOINT
["sh","/usr/local/bin/docker-entrypoint.sh"]
FROM
nginx:stable-alpine as production-stage
COPY
--from=build-stage /app/dist /usr/share/nginx/html
EXPOSE
80
CMD
["nginx", "-g", "daemon off;"]
nginx.conf
View file @
f15399c5
...
@@ -13,7 +13,7 @@ gzip_disable "MSIE [1-6]\.";
...
@@ -13,7 +13,7 @@ gzip_disable "MSIE [1-6]\.";
server
{
server
{
listen
8080
;
listen
8080
;
server_name
81
.68.189.225
;
server_name
localhost
;
location
/
{
location
/
{
root
/usr/share/nginx/html
;
root
/usr/share/nginx/html
;
index
index.html
index.htm
;
index
index.html
index.htm
;
...
...
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