Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh-order-h5
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
李俊赕
wxh-order-h5
Commits
8fab9f8f
Commit
8fab9f8f
authored
Mar 09, 2021
by
李超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dockerfile文件
parent
bfe5a692
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
Dockerfile
web/Dockerfile
+9
-0
default.conf
web/default.conf
+37
-0
No files found.
web/Dockerfile
0 → 100644
View file @
8fab9f8f
# 设置基础镜像
FROM
nginx
# 用本地的 default.conf 配置来替换nginx镜像里的默认配置
COPY
default.conf /etc/nginx/conf.d/default.conf
# 将dist文件中的内容复制到 /weixiuhui/application/web-site/weixiuapp 这个目录下面
COPY
dist/dist.tar.gz /weixiuhui/application/web-site/weixiuapp/order-h5/
WORKDIR
/weixiuhui/application/web-site/weixiuapp/order-h5/
RUN
tar
-xvf
dist.tar.gz
web/default.conf
0 → 100644
View file @
8fab9f8f
# nginx配置
server
{
listen
80
;
server_name
localhost
;
#charset koi8-r;
access_log
/
var
/
log
/
nginx
/
host
.
access
.
log
main
;
error_log
/
var
/
log
/
nginx
/
error
.
log
error
;
location
/ {
# root 根目录,默认nginx镜像的html文件夹,可以指定其他
root
/
weixiuhui
/
application
/
web
-
site
;
index
index
.
html
index
.
htm
;
# 如果vue-router使用的是history模式,需要设置这个
#try_files $uri $uri/ @router;
}
location
/
weixiuapp
/
order
-
h5
/ {
alias
/
weixiuhui
/
application
/
web
-
site
/
weixiuapp
/
order
-
h5
/;
}
#location @router {
#rewrite ^.*$ /index.html last;
#}
#location ~* \.(eot|svg|ttf|woff)$ {
# add_header Access-Control-Allow-Origin *;
#}
#location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
#{
# expires 30d;
#}
#location ~ .*\.(js|css)?$
#{
# expires 12h;
#}
}
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