FROM alpine RUN apk add --no-cache 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"]