42 lines
926 B
Docker
42 lines
926 B
Docker
|
#FROM debian:bookworm-20231030-slim
|
||
|
FROM debian:bullseye-20220801
|
||
|
|
||
|
# need to add
|
||
|
# removed
|
||
|
# libsasl2-modules \
|
||
|
# ca-certificates \
|
||
|
|
||
|
# version pinning is being handled in our from line
|
||
|
# hadolint ignore=DL3008
|
||
|
RUN true && \
|
||
|
apt-get update && \
|
||
|
groupadd --gid 1000 user && \
|
||
|
useradd -m --home-dir /home/user --shell /bin/sh --uid 1000 --gid 1000 user && \
|
||
|
apt-get install -y --no-install-recommends \
|
||
|
libsasl2-2 \
|
||
|
libsasl2-dev \
|
||
|
perl \
|
||
|
libdatetime-format-dateparse-perl \
|
||
|
autoconf \
|
||
|
automake \
|
||
|
zlib1g-dev \
|
||
|
libdb-dev \
|
||
|
libsasl2-dev \
|
||
|
libssl-dev \
|
||
|
gcc \
|
||
|
make \
|
||
|
git \
|
||
|
&& \
|
||
|
apt-get clean && \
|
||
|
rm -rf /var/lib/apt/lists/* && \
|
||
|
true
|
||
|
|
||
|
# Built with
|
||
|
# apt install build-essential dh-autoreconf git
|
||
|
# apt install libssl-dev
|
||
|
# apt install zlib1g-dev
|
||
|
# apt install libsasl2-dev
|
||
|
|
||
|
WORKDIR /home/user
|
||
|
USER user
|