Spaces:
Paused
Paused
File size: 266 Bytes
f16d50c |
1 2 3 4 5 6 7 8 9 10 11 12 |
FROM golang:alpine AS builder
WORKDIR /app
COPY . .
RUN go build -ldflags="-w -s" -o go-chatgpt-api main.go
FROM alpine
WORKDIR /app
COPY --from=builder /app/go-chatgpt-api .
RUN apk add --no-cache tzdata
ENV TZ=Asia/Shanghai
EXPOSE 8080
CMD ["/app/go-chatgpt-api"] |