cc / Dockerfile
caidaoli's picture
feat: 更新端口配置,将所有相关文件中的端口从 8080 修改为 7860
5b4ade7
raw
history blame contribute delete
288 Bytes
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o main .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/main .
EXPOSE 7860
CMD ["./main"]