22 lines
289 B
Docker
22 lines
289 B
Docker
FROM golang:alpine as builder
|
|
|
|
WORKDIR /go/go.adphi.net/go-repo
|
|
|
|
COPY go.mod .
|
|
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
RUN go build -o go-repo .
|
|
|
|
FROM alpine
|
|
|
|
RUN apk add ca-certificates
|
|
|
|
COPY --from=builder /go/go.adphi.net/go-repo/go-repo /usr/bin/
|
|
|
|
EXPOSE 8888
|
|
|
|
ENTRYPOINT ["/usr/bin/go-repo"]
|