Revert "container: Build static executable"
dustin/tmpl/pipeline/head This commit looks good
Details
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
parent
554c1e9cf4
commit
1c33dfa4a4
|
@ -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 \
|
RUN --mount=type=cache,target=/var/cache \
|
||||||
apk add \
|
microdnf install -y \
|
||||||
musl-dev \
|
--setopt install_weak_deps=0 \
|
||||||
|
cargo\
|
||||||
&& :
|
&& :
|
||||||
|
|
||||||
COPY . /src
|
COPY . /src
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
RUN cargo build --release --locked \
|
RUN cargo build --release --locked
|
||||||
&& strip target/release/tmpl
|
|
||||||
|
|
||||||
|
|
||||||
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' \
|
LABEL name='tmpl' \
|
||||||
vendor='Dustin C. Hatch' \
|
vendor='Dustin C. Hatch' \
|
||||||
|
|
Loading…
Reference in New Issue