12 lines
246 B
Docker
12 lines
246 B
Docker
FROM docker.io/library/golang:1.20.1 as build
|
|
COPY . /certs-test
|
|
|
|
WORKDIR /certs-test
|
|
|
|
RUN CGO_ENABLED=0 go build -v .
|
|
|
|
FROM ghcr.io/mariouhrik/scratch-with-cacerts
|
|
COPY --from=build /certs-test/certs-test /certs-test
|
|
|
|
ENTRYPOINT ["/certs-test"]
|