Files
iPilot/Dockerfile
renovate[bot] a0f4a7a262 Update dependency golang (#17)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-07 19:03:59 +01:00

11 lines
325 B
Docker

FROM golang:1.19-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"]