duidui_fiber/Dockerfile
2026-03-27 10:34:03 +08:00

22 lines
453 B
Docker
Raw Permalink 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.

# DD Fiber API Dockerfile
FROM alpine:3.20
# 安装必要的运行时依赖
RUN apk add --no-cache ca-certificates tzdata
# 设置时区
ENV TZ=Asia/Shanghai
# 创建工作目录
WORKDIR /app
# 复制编译好的二进制文件
COPY bin/dd-fiber-api /app/dd-fiber-api
# 暴露端口Admin 和 API
EXPOSE 8080 8081
# 运行服务(配置文件通过挂载提供)
ENTRYPOINT ["/app/dd-fiber-api", "-config", "/app/data/config/config.yaml"]