gobuch-trainingfellow/registrierung/Dockerfile

14 lines
234 B
Docker
Raw Permalink Normal View History

2020-08-31 13:23:01 +00:00
FROM golang:1 as builder
WORKDIR /go/src/registration
COPY go.* ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o registration ./cmd
FROM alpine:latest
COPY --from=builder /go/src/registration .
CMD ["./registration"]