移除静态文件支持:删除静态资源目录相关代码和 Dockerfile 配置

This commit is contained in:
2026-01-27 16:22:21 +08:00
parent e12d912a6c
commit 6052af8357
3 changed files with 3 additions and 9 deletions

View File

@@ -32,11 +32,9 @@ FROM alpine:3.21
RUN apk add --no-cache ca-certificates tzdata
WORKDIR /app
# 创建必要目录
RUN mkdir -p data static
RUN mkdir -p data
# 从构建阶段复制二进制文件
COPY --from=builder /app/BingPaper .
# 复制静态资源(如果有些资源没有被 embed
COPY --from=builder /app/static ./static
# 复制默认配置
COPY config.example.yaml ./data/config.yaml