From 1c33dfa4a435a9eed5c9dc6df4725512e775e43b Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 18 Jan 2024 20:21:38 -0600 Subject: [PATCH] Revert "container: Build static executable" I had forgotten that this container image is the base for the *infra/cfg*, which needs a full operating system. This reverts commit 554c1e9cf49ad850157da9465d4dac78db7267ad. --- Containerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Containerfile b/Containerfile index 30487c3..a561900 100644 --- a/Containerfile +++ b/Containerfile @@ -1,23 +1,23 @@ -FROM docker.io/library/rust:1.73-alpine AS build +FROM registry.fedoraproject.org/fedora-minimal:39 AS build RUN --mount=type=cache,target=/var/cache \ - apk add \ - musl-dev \ + microdnf install -y \ + --setopt install_weak_deps=0 \ + cargo\ && : COPY . /src WORKDIR /src -RUN cargo build --release --locked \ - && strip target/release/tmpl +RUN cargo build --release --locked -FROM scratch +FROM registry.fedoraproject.org/fedora-minimal:39 -COPY --from=build /src/target/release/tmpl /tmpl +COPY --from=build /src/target/release/tmpl /usr/local/bin -ENTRYPOINT ["/tmpl"] +ENTRYPOINT ["/usr/local/bin/tmpl"] LABEL name='tmpl' \ vendor='Dustin C. Hatch' \