miniapi / Dockerfile
Replit Agent
fix: set PORT=7860 for HF Spaces
8b0ed08
raw
history blame contribute delete
254 Bytes
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"]