Files
mengyamonitor/mengyamonitor-backend-server/Dockerfile.binary
2026-05-16 19:03:34 +08:00

14 lines
462 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 使用本机/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"]