Skip to content

Commit

Permalink
feat(Dockerfile): add a new stage for debugging (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
favonia authored Nov 1, 2024
1 parent b890eb0 commit 7d8ef9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ RUN \
go build -tags "timetzdata" -trimpath -ldflags="-w -s -X main.Version=${GIT_DESCRIBE} -buildid=" \
-o /bin/ddns ./cmd/ddns

# The "debug" stage can be used directly for debugging.
FROM build AS debug
ENTRYPOINT ["/bin/ddns"]

# The minimal images contain only the program and the consolidated certificates.
FROM scratch AS minimal
COPY --from=build /bin/ddns /bin/
Expand Down

0 comments on commit 7d8ef9a

Please sign in to comment.