Kumanda/server/Containerfile

41 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

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 procps
WORKDIR /src
RUN git clone https://github.com/zmanda/amanda.git && cd amanda && git checkout ${AMANDA_VERSION} && git submodule update --init --recursive
2024-07-24 21:04:49 +02:00
RUN cd amanda && ./autogen
RUN cd amanda && ./configure --without-client --without-bsd-security --with-ssl-security --with-ssh-security --with-readline --with-ipv6 --with-user=backup --with-group=backup
RUN cd amanda && make
RUN cd amanda && 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 procps
2024-08-18 13:10:41 +02:00
RUN apt-get -qy install tini openbsd-inetd
COPY --from=builder /usr/local/ /usr/local/
RUN mkdir /usr/local/etc/amanda/ssl
RUN mkdir /usr/local/etc/amanda/Backup/
RUN chown backup:backup /usr/local/etc/amanda
ENV LD_LIBRARY_PATH /usr/local/share/perl5/site_perl/auto/Amanda/Debug/
2024-07-31 22:13:24 +02:00
ADD scripts/entryPoint.sh /entryPoint.sh
RUN chmod +x /entryPoint.sh
2024-08-18 13:10:41 +02:00
COPY inetd.conf /etc/inetd.conf
USER backup
2024-07-31 22:13:24 +02:00
ENTRYPOINT ["/usr/bin/tini", "--", "/entryPoint.sh"]