Skip to content
Snippets Groups Projects
Select Git revision
  • 7ac472b552dd272ac53fa147e3fe186c51cf9ed7
  • main default protected
2 results

Dockerfile

Blame
  • Dockerfile 690 B
    FROM ubuntu:18.04
    
    RUN apt-get update && \
        apt-get install -y --no-install-recommends \
        software-properties-common && \
        apt-add-repository ppa:seafile/seafile-client && \
        apt-get update && \
        apt-get install -y --no-install-recommends \
        seafile-cli \
        oathtool && \
        rm -rf /var/lib/apt/lists/*
    
    ADD docker-entrypoint.sh /docker-entrypoint.sh
    
    RUN addgroup --system --gid 1000 seafile-sync && \
        adduser --system --ingroup seafile-sync --uid 1000 --shell /bin/sh --home /config seafile-sync
    
    USER seafile-sync
    
    ENV TASK="sync"    
    ENV LIBRARY=""
    ENV SERVER=""
    ENV EMAIL=""
    ENV PASSWORD=""
    ENV OTP_TOKEN=""
    
    VOLUME /sync
    
    ENTRYPOINT ["/docker-entrypoint.sh"]