Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9fbeddc9f4 |
+6
-3
@@ -9,9 +9,12 @@ RUN apk add --no-cache upx
|
||||
|
||||
RUN upx --best --lzma bin/server
|
||||
|
||||
# 使用带有 glibc 的 Alpine 变体
|
||||
FROM frolvlad/alpine-glibc:alpine-3.19
|
||||
RUN apk add --no-cache libstdc++
|
||||
# 使用更小的 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