Files
iPilot/Dockerfile
renovate[bot] ebf0988f7d Update golang Docker tag to v1.17 (#3)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-19 22:49:07 +01:00

11 lines
325 B
Docker

FROM golang:1.17-alpine as build
WORKDIR /go/src/app
COPY . /go/src/app
RUN CGO_ENABLED=0 go build -o /go/bin/app
FROM gcr.io/distroless/base-debian10
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
LABEL org.opencontainers.image.source="https://github.com/luketainton/iPilot"
COPY --from=build /go/bin/app /
CMD ["/app"]