2022-10-09 11:33:33 +00:00
|
|
|
FROM alpine
|
2020-02-01 13:07:46 +00:00
|
|
|
|
2022-10-09 11:33:33 +00:00
|
|
|
RUN apk add --no-cache wget lftp mariadb-client postgresql-client
|
2020-02-01 13:07:46 +00:00
|
|
|
|
2022-10-06 11:01:28 +00:00
|
|
|
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
|
2020-02-01 13:07:46 +00:00
|
|
|
|
|
|
|
EXPOSE 35621/TCP 35622/UDP 35623/TCP
|
|
|
|
|
2020-02-03 19:46:25 +00:00
|
|
|
COPY scripts/* /usr/local/etc/urbackup/
|
|
|
|
RUN chmod 0700 /usr/local/etc/urbackup/*
|
2020-02-01 21:04:44 +00:00
|
|
|
|
2020-02-01 14:49:30 +00:00
|
|
|
WORKDIR /app
|
2020-02-01 21:04:44 +00:00
|
|
|
COPY run.sh /app/
|
2020-02-01 14:49:30 +00:00
|
|
|
|
|
|
|
CMD ["sh", "run.sh"]
|