Hass-addons/seafile_sync/Dockerfile

33 lines
688 B
Docker
Raw Permalink Normal View History

2022-07-27 22:19:17 +02:00
# https://gitlab.com/flwgns-docker/seafile-client/
2022-07-28 12:24:36 +02:00
FROM debian:buster-slim
2022-08-01 12:27:17 +02:00
#RUN ln -s /config /library \
# && ln -s /data/seafuser /home/seafuser
2022-07-28 12:23:05 +02:00
2022-07-27 22:51:38 +02:00
FROM flowgunso/seafile-client:latest
2022-07-27 22:50:08 +02:00
2022-07-28 12:14:00 +02:00
#RUN mkdir /library \
# && ln -s /config /library
2022-07-28 12:41:26 +02:00
ENV \
2022-07-28 12:44:45 +02:00
SEAF_SERVER_URL="${SERVER_URL}" \
SEAF_USERNAME="${USERNAME}" \
SEAF_PASSWORD="${PASSWORD}" \
SEAF_LIBRARY_UUID="${LIBRARY_UUID}" \
SEAF_SKIP_SSL_CERT="${SKIP_SSL_CERT}"
2022-07-27 22:50:08 +02:00
2022-08-01 12:27:17 +02:00
# MOFIFY DATA PATH
RUN sed -i "s|library|config|g" /etc/services.d/seafile/run
RUN sed -i "s|/home/seafuser|/data/seafuser|g" /etc/services.d/seafile/run
VOLUME [ "/data" ]
VOLUME [ "/config" ]
2022-07-28 12:09:37 +02:00
#RUN mkdir /config
#RUN mkdir /library
2022-07-28 12:12:12 +02:00
2022-07-28 12:23:05 +02:00
2022-07-28 12:19:17 +02:00