We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7da86a8 commit 762a422Copy full SHA for 762a422
linux/Dockerfile
@@ -1,7 +1,7 @@
1
# -----------
2
# Build Image
3
4
-FROM golang:1.23-alpine3.20 AS build
+FROM golang:1.23-alpine3.22 AS build
5
6
WORKDIR /app
7
@@ -21,12 +21,18 @@ RUN --mount=type=cache,target=/go/pkg/mod \
21
go build -ldflags '-s' -o /bin/ryuk
22
23
# -----------------
24
-# Distributed Image
+# Certificates
25
26
-FROM alpine:3.22
+FROM alpine:3.22 AS certs
27
28
RUN apk --no-cache add ca-certificates
29
30
+# -----------------
31
+# Distributed Image
32
33
+FROM scratch
34
+
35
+COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
36
COPY --from=build /bin/ryuk /bin/ryuk
37
CMD ["/bin/ryuk"]
38
LABEL org.testcontainers.ryuk=true
0 commit comments