Revert "container: Build static executable"
dustin/tmpl/pipeline/head This commit looks good Details

I had forgotten that this container image is the base for the
*infra/cfg*, which needs a full operating system.

This reverts commit 554c1e9cf4.
master
Dustin 2024-01-18 20:21:38 -06:00
parent 554c1e9cf4
commit 1c33dfa4a4
1 changed files with 8 additions and 8 deletions

View File

@ -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' \