update build

This commit is contained in:
WilliamPeterMatthew
2025-05-27 22:38:05 +08:00
parent f89512fb24
commit 64225ad65f
2 changed files with 2 additions and 4 deletions
-3
View File
@@ -3,7 +3,6 @@ FROM python:3.12-alpine3.21
ENV TZ=Asia/Shanghai
ENV ARGS=
# 更新系统包以修复已知漏洞,并安装shadowsocks-rust和依赖
RUN echo "https://dl-cdn.alpinelinux.org/alpine/v3.21/community" >> /etc/apk/repositories && \
apk update && apk add --no-cache \
tzdata \
@@ -13,7 +12,6 @@ RUN echo "https://dl-cdn.alpinelinux.org/alpine/v3.21/community" >> /etc/apk/rep
&& echo "$TZ" > /etc/timezone \
&& rm -rf /var/cache/apk/*
# 安装Python依赖
RUN pip install flask
WORKDIR /app
@@ -21,7 +19,6 @@ COPY templates/ /app/templates/
COPY ./app.py /app/app.py
RUN chmod +x /app/app.py
# 暴露端口
EXPOSE 5000 1080/udp 1080/tcp
CMD ["python", "app.py"]
+2 -1
View File
@@ -39,8 +39,9 @@ def action():
else:
subprocess.Popen([
"sslocal",
"--log-without-time",
"-c", "/.ssconfig.json",
"-f", "/var/run/sslocal.pid"
"--daemonize-pid", "/var/run/sslocal.pid"
])
return redirect('/')