26 lines
648 B
Docker
26 lines
648 B
Docker
FROM stagex/busybox:sx2024.09.0@sha256:d34bfa56566aa72d605d6cbdc154de8330cf426cfea1bc4ba8013abcac594395 AS busybox
|
|
FROM stagex/ca-certificates:sx2024.09.0@sha256:33787f1feb634be4232a6dfe77578c1a9b890ad82a2cf18c11dd44507b358803 AS ca-certificates
|
|
FROM stagex/go:sx2024.09.0@sha256:56f511d92dcc6c1910115d8b19dd984b6cd682d1d3e9b72456e3b95f7b141fee AS go
|
|
|
|
FROM scratch AS builder
|
|
|
|
ENV CGO_ENABLED=0
|
|
|
|
COPY --from=busybox . .
|
|
COPY --from=go . .
|
|
COPY --from=ca-certificates . .
|
|
|
|
ADD . /src/gcal-sync
|
|
|
|
WORKDIR /src/gcal-sync
|
|
|
|
RUN go build -o /app
|
|
|
|
FROM scratch
|
|
|
|
WORKDIR /
|
|
|
|
COPY --from=ca-certificates . .
|
|
COPY --from=builder /app /app
|
|
|
|
ENTRYPOINT ["/app"]
|