增加docker打包文件

This commit is contained in:
ewen.zhang 2023-05-26 10:58:21 +01:00
parent 19e7725352
commit 65c1f42c9a
3 changed files with 38 additions and 0 deletions

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"i18n-ally.localesPaths": ["src/i18n"]
}

10
build/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM dreamacro/clash:v1.16.0
EXPOSE 8080
RUN apk update && apk add nginx
COPY ./dist/ /dashboard
COPY ./build/nginx.conf /etc/nginx
CMD nginx && /clash

25
build/nginx.conf Normal file
View File

@ -0,0 +1,25 @@
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name localhost;
default_type 'text/html';
charset utf-8;
location / {
root /dashboard;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
}
}