mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 05:51:56 +08:00
增加docker打包文件
This commit is contained in:
parent
19e7725352
commit
65c1f42c9a
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"i18n-ally.localesPaths": ["src/i18n"]
|
||||||
|
}
|
10
build/Dockerfile
Normal file
10
build/Dockerfile
Normal 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
25
build/nginx.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user