Kumanda/client/Containerfile
Dominik Meyer c074a8f3a4
Some checks failed
continuous-integration/drone/push Build is failing
fix: fixed wrong package names in client images
2024-07-25 08:15:55 +02:00

31 lines
1.1 KiB
Docker

FROM debian:stable-slim as builder
ARG AMANDA_VERSION=tag-community-3.5.4
RUN apt-get -qy update && apt-get -qy upgrade
RUN apt-get -qy install git libssl-dev make autoconf autoconf-archive automake bash bison \
flex perl libperl-dev libglib2.0-dev swig \
libtirpc-dev libreadline-dev libxslt1-dev libxml-simple-perl
WORKDIR /src
RUN git clone https://github.com/zmanda/amanda.git && cd amanda && git checkout ${AMANDA_VERSION} && git submodule update --init --recursive
WORKDIR /src/amanda
RUN ./autogen
RUN ./configure --without-server --without-bsd-security --with-ssl-security --with-ssh-security --with-readline --with-ipv6 --with-user=backup --with-group=backup
RUN make
RUN make install
FROM debian:stable-slim
RUN apt-get -qy update && apt-get -qy upgrade
RUN apt-get -qy install git libssl3 bash perl libglib2.0 swig libtirpc3 libreadline8 \
libxslt1.1 libxml-simple-perl libjson-perl
COPY --from=builder /usr/local/ /usr/local/
ENV LD_LIBRARY_PATH /usr/local/share/perl5/site_perl/auto/Amanda/Debug/
USER backup