Skip to content

Commit

Permalink
Add workspace directory to Dockerfile (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
silas authored Oct 15, 2024
1 parent 8ff9200 commit 90e47d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ WORKDIR /src
ADD go.mod go.sum /src/
RUN go mod download
ADD . /src
RUN mkdir -p /workspace
RUN go build -o /src/jimmy github.com/silas/jimmy

FROM gcr.io/distroless/base-debian12
COPY --from=go /src/jimmy /
COPY --from=go /workspace /src/jimmy /
WORKDIR /workspace
ENTRYPOINT ["/jimmy"]

0 comments on commit 90e47d0

Please sign in to comment.