rinetd/container/Dockerfile
Luiz Felipe F M Costa 71d7998afe Add container build
2023-10-26 12:33:29 -03:00

36 lines
686 B
Docker

# registry.access.redhat.com/ubi9/ubi:latest
FROM docker.io/redhat/ubi9:latest AS builder
RUN set -x \
&& dnf upgrade -y \
# Install OS dependencies
&& dnf install -y \
# C compiler, make and related tools
gcc \
make \
cmake \
automake
# Copy source to /build/
COPY . /build/
WORKDIR /build/
RUN set -x \
# Build
&& ./bootstrap \
&& ./configure \
&& make \
# Install
&& cd /build/ \
&& make install
# ==========================
# Final image
FROM docker.io/redhat/ubi9:latest
RUN set -x \
&& dnf upgrade -y \
&& dnf clean all
COPY --from=builder /usr/local/sbin/rinetd /usr/local/sbin/rinetd