Files
InfoGenie/infogenie-backend-go/Dockerfile.prebuilt

13 lines
414 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.
# 使用本机/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"]