Files
tmpl/Containerfile
Dustin C. Hatch e5403dbc66
All checks were successful
dustin/tmpl/pipeline/head This commit looks good
ci: Add Jenkins build pipeline
We'll build and publish `tmpl` with a container image, to make it easier
for other container images to include it.
2024-01-14 11:20:03 -06:00

26 lines
508 B
Docker

FROM registry.fedoraproject.org/fedora-minimal:39 AS build
RUN --mount=type=cache,target=/var/cache \
microdnf install -y \
--setopt install_weak_deps=0 \
cargo\
&& :
COPY . /src
WORKDIR /src
RUN cargo build --release --locked
FROM registry.fedoraproject.org/fedora-minimal:39
COPY --from=build /src/target/release/tmpl /usr/local/bin
ENTRYPOINT ["/usr/local/bin/tmpl"]
LABEL name='tmpl' \
vendor='Dustin C. Hatch' \
license='MIT OR APACHE-2.0' \
version='0.1.0'