Files
iPilot/Dockerfile
renovate[bot] 1ac46c0b22 Update dependency golang (#6)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-04-13 15:27:17 +01:00

11 lines
325 B
Docker

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