go / Dockerfile
oki692's picture
Update Dockerfile
e155ed6 verified
raw
history blame contribute delete
239 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 .
EXPOSE 7860
CMD ["./gateway"]