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