Skip to content

Commit

Permalink
Build docproxy with Docker
Browse files Browse the repository at this point in the history
Full details on this change: cloud-gov/product#3216 (comment)
  • Loading branch information
jameshochadel committed Dec 23, 2024
1 parent 2ced3de commit 47d2ecd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docproxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit 47d2ecd

Please sign in to comment.