2023-03-08 17:59:17 +01:00
|
|
|
FROM docker.io/library/golang:1.20.1 as build
|
|
|
|
COPY . /certs-test
|
|
|
|
|
|
|
|
WORKDIR /certs-test
|
|
|
|
|
|
|
|
RUN CGO_ENABLED=0 go build -v .
|
|
|
|
|
2023-03-09 14:38:48 +01:00
|
|
|
FROM ghcr.io/mariouhrik/scratch-with-cacerts
|
2023-03-08 17:59:17 +01:00
|
|
|
COPY --from=build /certs-test/certs-test /certs-test
|
|
|
|
|
|
|
|
ENTRYPOINT ["/certs-test"]
|