-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Dockerfiles + CI job for building and uploading docker images (#22)
* fix: glibc in final docker images * fix: pin rust image to major version based on debian * fix: adjust compose file for new Dockerfile * ci: public docker image on repo tag * ci: test pushing to own repo * ci: fix * ci: change image name * ci: fix image name again * ci: switch to upstream repo config * refactor: ARG for final base image * fix: switch to nonroot docker image
- Loading branch information
Showing
5 changed files
with
55 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# NOTE: use Google's "distroless with libgcc1" base image, see: | ||
# https://github.com/GoogleContainerTools/distroless/blob/6755e21ccd99ddead6edc8106ba03888cbeed41a/cc/README.md | ||
ARG BASE_IMAGE_FINAL_STAGES="gcr.io/distroless/cc:nonroot" | ||
|
||
FROM rust:1-bookworm AS builder | ||
|
||
WORKDIR /usr/src/lidi | ||
COPY . . | ||
RUN cargo install --path . | ||
|
||
FROM ${BASE_IMAGE_FINAL_STAGES} AS send | ||
|
||
COPY --from=builder --chown=root:root --chmod=755 /usr/local/cargo/bin/diode-send /usr/local/bin/ | ||
ENTRYPOINT ["diode-send"] | ||
|
||
FROM ${BASE_IMAGE_FINAL_STAGES} AS receive | ||
|
||
COPY --from=builder --chown=root:root --chmod=755 /usr/local/cargo/bin/diode-receive /usr/local/bin/ | ||
ENTRYPOINT ["diode-receive"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters