mirror of
https://github.com/SourceFellows/trainingfellow.git
synced 2024-12-22 19:01:47 +00:00
14 lines
234 B
Docker
14 lines
234 B
Docker
FROM golang:1 as builder
|
|
|
|
WORKDIR /go/src/vorbereitung
|
|
|
|
COPY go.* ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 go build -o vorbereitung ./cmd
|
|
|
|
FROM alpine:latest
|
|
COPY --from=builder /go/src/vorbereitung .
|
|
CMD ["./vorbereitung"]
|