Skip to content

Commit 7c2b68b

Browse files
authored
Merge pull request #151 from canghai908/dev
Dev
2 parents ba125b7 + c9354e4 commit 7c2b68b

File tree

10 files changed

+428
-292
lines changed

10 files changed

+428
-292
lines changed

Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags="-w -s" -o
3636
FROM alpine:latest
3737

3838
# 安装运行时依赖
39-
RUN apk --no-cache add ca-certificates tzdata && \
39+
RUN apk --no-cache add ca-certificates tzdata wget && \
4040
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
4141
echo "Asia/Shanghai" > /etc/timezone
4242

@@ -46,24 +46,18 @@ WORKDIR /app
4646
COPY --from=backend-builder /app/zbxtable .
4747
COPY --from=backend-builder /app/web ./web
4848

49-
# 复制配置文件模板
50-
COPY zbxtable/config/app.conf ./config/app.conf.example
51-
52-
# 复制模板文件
53-
COPY zbxtable/pkg/templates/files ./pkg/templates/files
54-
5549
# 创建必要的目录
5650
RUN mkdir -p /app/log /app/download /app/template /app/config
5751

5852
# 设置权限
5953
RUN chmod +x /app/zbxtable
6054

6155
# 暴露端口
62-
EXPOSE 8085
56+
EXPOSE 8088
6357

6458
# 健康检查
6559
HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
66-
CMD wget --quiet --tries=1 --spider http://localhost:8085/ || exit 1
60+
CMD wget --quiet --tries=1 --spider http://localhost:8088/ || exit 1
6761

6862
# 启动应用
6963
CMD ["/app/zbxtable", "web"]

0 commit comments

Comments
 (0)