Skip to content

Commit

Permalink
ioc: install user-specified runtime tarball packages.
Browse files Browse the repository at this point in the history
This makes it possible to install software not packaged in the
distribution repositories, such as closed-source local packages.

`ldconfig` is executed at the end to refresh the dynamic linker library
resolution cache, which is required to identify new libraries installed
with lnls-get-n-unpack.
  • Loading branch information
henriquesimoes committed Sep 19, 2023
1 parent c6b7874 commit 7a44f81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@ FROM debian:${DEBIAN_VERSION}-slim AS base
ARG RUNDIR
ARG ENTRYPOINT=/bin/bash
ARG RUNTIME_PACKAGES
ARG RUNTIME_TAR_PACKAGES

RUN apt update -y && \
apt install -y --no-install-recommends \
libreadline8 \
busybox \
netcat-openbsd \
procserv \
wget \
$RUNTIME_PACKAGES && \
apt clean && \
rm -rf /var/lib/apt/lists/*

COPY --from=build-image /usr/local/bin/lnls-get-n-unpack /usr/local/bin/lnls-get-n-unpack
RUN lnls-get-n-unpack -r $RUNTIME_TAR_PACKAGES && \
ldconfig

WORKDIR ${RUNDIR}

RUN ln -s ${ENTRYPOINT} ./entrypoint
Expand Down

0 comments on commit 7a44f81

Please sign in to comment.