Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 63a83ddd5e | |||
| f8d3d6a0ad | |||
| e2eb27a5ba |
+1
-6
@@ -9,12 +9,7 @@ RUN apk add --no-cache upx
|
|||||||
|
|
||||||
RUN upx --best --lzma bin/server
|
RUN upx --best --lzma bin/server
|
||||||
|
|
||||||
# 使用更小的 Debian
|
FROM golang:latest
|
||||||
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 --from=backend-builder /build/bin/server /app/server
|
||||||
COPY static /app/static
|
COPY static /app/static
|
||||||
COPY static/*.so /app/
|
COPY static/*.so /app/
|
||||||
|
|||||||
Reference in New Issue
Block a user