mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
20 lines
294 B
Plaintext
20 lines
294 B
Plaintext
FROM golang:1.16-alpine as build
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
WORKDIR /src
|
|
|
|
COPY go.mod ./
|
|
COPY go.sum ./
|
|
|
|
RUN go mod download
|
|
|
|
COPY publisher.go ./
|
|
|
|
RUN go build publisher.go
|
|
|
|
FROM alpine as runtime
|
|
|
|
COPY --from=build /src/publisher /app/publisher
|
|
|
|
CMD [ "/app/publisher" ] |