We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aef81e commit 2cad66aCopy full SHA for 2cad66a
Containerfile
@@ -1,7 +1,10 @@
1
-# This builds Boulder in a Docker container, then creates an image
2
-# containing just the built Boulder binaries plus some ancillary
3
-# files that are useful for predeployment testing.
4
-FROM docker.io/ubuntu:24.04 AS builder
+# This multi-stage build first builds Boulder in a container, then
+# creates a minimal image containing the built Boulder binaries and
+# ancillary files for pre-deployment testing.
+ARG BUILDER_BASE=docker.io/ubuntu:24.04
5
+ARG FINAL_BASE=docker.io/ubuntu:24.04
6
+
7
+FROM ${BUILDER_BASE} AS builder
8
9
ARG COMMIT_ID
10
ARG GO_VERSION
@@ -32,7 +35,7 @@ RUN go install \
32
35
-mod=vendor \
33
36
./...
34
37
-FROM docker.io/ubuntu:24.04
38
+FROM ${FINAL_BASE}
39
40
ARG VERSION
41
0 commit comments