21 lines
503 B
Docker
21 lines
503 B
Docker
FROM debian
|
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget lftp mariadb-client postgresql-client
|
|
|
|
ARG CLIENT_VERSION
|
|
|
|
RUN TF=`mktemp` && \
|
|
wget "https://hndl.urbackup.org/Client/${CLIENT_VERSION}/UrBackup%20Client%20Linux%20${CLIENT_VERSION}.sh" -O $TF && \
|
|
sh $TF silent && \
|
|
rm $TF
|
|
|
|
EXPOSE 35621/TCP 35622/UDP 35623/TCP
|
|
|
|
COPY scripts/* /usr/local/etc/urbackup/
|
|
RUN chmod 0700 /usr/local/etc/urbackup/*
|
|
|
|
WORKDIR /app
|
|
COPY run.sh /app/
|
|
|
|
CMD ["sh", "run.sh"]
|