Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9fbeddc9f4 | |||
| 289bbe3f0d | |||
| bec6a93b65 |
+6
-1
@@ -9,7 +9,12 @@ RUN apk add --no-cache upx
|
||||
|
||||
RUN upx --best --lzma bin/server
|
||||
|
||||
FROM alpine:latest
|
||||
# 使用更小的 Debian
|
||||
FROM debian:bookworm-slim
|
||||
# 安装最小运行时依赖
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=backend-builder /build/bin/server /app/server
|
||||
COPY static /app/static
|
||||
COPY static/*.so /app/
|
||||
|
||||
Reference in New Issue
Block a user