FROM golang:1.21-alpine AS builder WORKDIR /app COPY go.mod ./ COPY *.go ./ RUN go build -o gateway . FROM alpine:latest RUN apk --no-cache add ca-certificates WORKDIR /app COPY --from=builder /app/gateway . ENV PORT=7860 EXPOSE 7860 CMD ["./gateway"]