Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
8e275b13
Commit
8e275b13
authored
Apr 21, 2020
by
周远喜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker 配置一键发布
parent
1105c2c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
Dockerfile
static/Dockerfile
+7
-0
nginx.conf
static/nginx.conf
+43
-0
No files found.
static/Dockerfile
0 → 100644
View file @
8e275b13
FROM
nginx
WORKDIR
/usr/share/nginx/html
COPY
dist/ .
COPY
nginx.conf /etc/nginx/nginx.conf
RUN
cp
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
echo
'Asia/Shanghai'
>
/etc/timezone
EXPOSE
3005
ENTRYPOINT
["nginx", "-g","daemon off;"]
static/nginx.conf
0 → 100644
View file @
8e275b13
user
nginx
;
worker_processes
auto
;
error_log
/var/log/nginx/error.log
;
pid
/run/nginx.pid
;
include
/usr/share/nginx/modules/*.conf
;
events
{
worker_connections
1024
;
}
http
{
log_format
main
'
$remote_addr
-
$remote_user
[
$time_local
]
"
$request
"
'
'
$status
$body_bytes_sent
"
$http_referer
"
'
'"
$http_user_agent
"
"
$http_x_forwarded_for
"'
;
access_log
/var/log/nginx/access.log
main
;
sendfile
on
;
tcp_nopush
on
;
tcp_nodelay
on
;
keepalive_timeout
65
;
types_hash_max_size
2048
;
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
include
/etc/nginx/conf.d/*.conf
;
server
{
listen
3005
;
root
/usr/share/nginx/html
;
location
/
{
try_files
$uri
$uri
/
@router
;
index
index.html
index.htm
;
}
location
@router
{
rewrite
^.*
$
.index.html
last
;
}
}
}
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