Files
InsightReply/server/Dockerfile
zs 8cf6cb944b
Some checks failed
Extension Build & Release / build (push) Failing after 1m5s
Backend Deploy (Go + Docker) / deploy (push) Failing after 1m40s
Web Console Deploy (Vue 3 + Vite) / deploy (push) Has been cancelled
feat: 部署初版测试
2026-03-02 21:25:21 +08:00

19 lines
408 B
Docker

FROM alpine:latest
# 安装证书 (HTTPS请求需要) 和时区数据
RUN apk --no-cache add ca-certificates tzdata
WORKDIR /app
# 拷贝由 CI 提前编译好的二进制文件
# 这里假设 CI 已经将编译产物命名为 server_bin
COPY server_bin .
RUN chmod +x server_bin
# 拷贝数据库迁移文件 (服务启动时自动执行)
COPY migrations ./migrations
EXPOSE 8080
CMD ["./server_bin"]