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" ]