chore: sync local updates
This commit is contained in:
13
mengyamonitor-backend-server/Dockerfile.binary
Normal file
13
mengyamonitor-backend-server/Dockerfile.binary
Normal file
@@ -0,0 +1,13 @@
|
||||
# 使用本机/CI 已编译好的 Linux amd64 二进制打包镜像(不在 Docker 内 go build)
|
||||
# 先执行: build-linux-amd64.bat 或 release 目录放置同名文件
|
||||
FROM alpine:3.20
|
||||
RUN apk add --no-cache ca-certificates tzdata
|
||||
WORKDIR /app
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=9393
|
||||
ENV GRPC_PORT=9394
|
||||
ENV DB_PATH=/app/data/servers.db
|
||||
COPY release/mengyamonitor-central-linux-amd64 /app/central
|
||||
RUN chmod +x /app/central
|
||||
EXPOSE 9393 9394
|
||||
ENTRYPOINT ["/app/central"]
|
||||
Reference in New Issue
Block a user