FROM debian:buster-slim
# hadolint ignore=DL3008
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
        syncevolution-http \
        syncevolution \
    && \
    rm -rf /tmp/* /var/tmp/* /var/cache/apt/archives/* /var/lib/apt/lists/* && \
    install -d -m 777 /syncevolution
VOLUME /syncevolution
COPY entrypoint.sh /entrypoint.sh
EXPOSE 9000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["syncevo-http-server", "--start-dbus-session", "http://0.0.0.0:9000/syncevolution"]
