mirror of
https://github.com/wweir/sower.git
synced 2024-04-21 12:42:15 +00:00
17 lines
244 B
Docker
17 lines
244 B
Docker
# Compile
|
|
FROM golang:1.14-alpine AS compiler
|
|
|
|
RUN apk add --no-cache git make
|
|
|
|
# enable go modules
|
|
WORKDIR /src
|
|
COPY . .
|
|
|
|
RUN CGO_ENABLED=0 make build
|
|
|
|
|
|
# Build image
|
|
FROM scratch
|
|
|
|
COPY --from=compiler /src/sower /sower
|
|
ENTRYPOINT [ "/sower" ] |