更新前后端配置并清理仓库内容
This commit is contained in:
12
infogenie-backend-go/Dockerfile.prebuilt
Normal file
12
infogenie-backend-go/Dockerfile.prebuilt
Normal file
@@ -0,0 +1,12 @@
|
||||
# 使用本机/CI 预先构建的 Linux amd64 二进制(见 build-linux-amd64.bat),镜像内不再执行 go build
|
||||
# 构建前请先运行: build-linux-amd64.bat 生成 dist\server
|
||||
FROM alpine:3.21
|
||||
RUN apk --no-cache add ca-certificates tzdata
|
||||
ENV TZ=Asia/Shanghai
|
||||
WORKDIR /app
|
||||
COPY dist/server ./server
|
||||
RUN chmod +x ./server
|
||||
EXPOSE 5002
|
||||
ENV APP_ENV=production
|
||||
ENV APP_PORT=5002
|
||||
CMD ["./server"]
|
||||
Reference in New Issue
Block a user