From c990d19b07e26b21a55f44b8b5f2b558af8a9857 Mon Sep 17 00:00:00 2001 From: James Hochadel Date: Wed, 11 Dec 2024 10:33:49 -0500 Subject: [PATCH] Build docproxy with Docker Full details on this change: https://github.com/cloud-gov/product/issues/3216#issuecomment-2536272676 --- docproxy/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docproxy/Dockerfile diff --git a/docproxy/Dockerfile b/docproxy/Dockerfile new file mode 100644 index 0000000..d1a4659 --- /dev/null +++ b/docproxy/Dockerfile @@ -0,0 +1,14 @@ +ARG builder_image +ARG base_image + +# Builder: Build the Go app using an image with the Go toolchain installed. +FROM ${builder_image} AS build +ADD . /app +WORKDIR /app +RUN go build . + +# Create the final image based on our hardened base image. +FROM ${base_image} +COPY --from=build /app/docproxy /app/ + +CMD [ "docproxy" ]