Files
sshca/Containerfile
Dustin C. Hatch 4b7c8c3d5a
All checks were successful
dustin/sshca/pipeline/head This commit looks good
container: Install openssl-devel in build stage
The OpenID Connect integration introduced a dependency on the system
OpenSSL library.  As such, the OpenSSL development package needs ot be
available when building the application.
2024-01-31 20:35:40 -06:00

31 lines
638 B
Docker

FROM registry.fedoraproject.org/fedora:38 AS build
RUN --mount=type=cache,target=/var/cache \
dnf install -y \
--setopt install_weak_deps=0 \
cargo \
libvirt-devel \
rust \
openssl-devel \
&& :
COPY . /build
RUN cd /build && cargo build --release --bins && strip -s target/release/sshca
FROM registry.fedoraproject.org/fedora-minimal:38
RUN --mount=type=cache,target=/var/cache \
microdnf install -y \
--setopt install_weak_deps=0 \
tini \
libvirt-libs \
openssh-clients \
&& :
COPY --from=build /build/target/release/sshca /usr/local/bin/sshca
USER 298:298
ENTRYPOINT ["tini", "/usr/local/bin/sshca", "--"]