proxy / Dockerfile
sarveshpatel's picture
Update Dockerfile
9755a37 verified
raw
history blame contribute delete
242 Bytes
FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o server .
FROM alpine:latest
COPY --from=builder /app/server /server
EXPOSE 7860
CMD ["/server"]