mirror of
https://github.com/TangSengDaoDao/TangSengDaoDaoManager
synced 2024-12-14 20:39:59 +00:00
feat: ✨新增docker配置
This commit is contained in:
parent
885a189845
commit
d023507ce9
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@ -0,0 +1,4 @@
|
||||
# 文件
|
||||
node_modules
|
||||
test
|
||||
.git
|
8
Dockerfile
Normal file
8
Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
# 引用镜像
|
||||
FROM nginx:latest
|
||||
|
||||
LABEL maintainer="zp"
|
||||
|
||||
# 将项目根目录下dist文件夹下的所有文件复制到镜像中 /usr/share/nginx/html/ 目录下
|
||||
COPY dist/ /usr/share/nginx/html/
|
||||
COPY default.conf /etc/nginx/conf.d/default.conf
|
14
default.conf
Normal file
14
default.conf
Normal file
@ -0,0 +1,14 @@
|
||||
server {
|
||||
listen 8084;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user