update seahub Dockerfile

This commit is contained in:
Gerrit Gogel 2021-01-21 14:50:39 +01:00
parent 52d03fae97
commit f4df353241

View file

@ -51,16 +51,14 @@ pycryptodome \
requests_oauthlib \
&& rm -r /root/.cache/pip
RUN apk add bash
RUN mkdir -p /opt/seafile/ && cd /opt/seafile/
COPY --from=get /tmp/seafile-server*/seahub/ /opt/seafile/seahub
COPY --from=get /tmp/seafile-server*/seahub.sh /opt/seafile
COPY --from=get /tmp/seafile-server*/seahub/ /opt/seafile/seafile-server-latest/seahub
COPY scripts/seahub.sh /opt/seafile/seafile-server-latest
COPY scripts /scripts
RUN chmod u+x /scripts/*
EXPOSE 8000
WORKDIR /opt/seafile
CMD ["/opt/seafile/seahub.sh", "start", "8000"]
CMD ["/scripts/start.sh"]