update seahub Dockerfile

This commit is contained in:
Gerrit Gogel 2021-01-21 03:40:42 +01:00
parent 993725aa10
commit ea1247cdec

View file

@ -10,9 +10,7 @@ RUN cd /tmp && \
FROM alpine:3.13 FROM alpine:3.13
RUN mkdir -p /opt/seafile/ && cd /opt/seafile/ # TODO seperate pip stage
COPY --from=get /tmp/seafile-server*/seahub* /opt/seafile/
RUN apk add \ RUN apk add \
python3-dev \ python3-dev \
@ -54,8 +52,15 @@ requests_oauthlib \
&& rm -r /root/.cache/pip && rm -r /root/.cache/pip
WORKDIR /opt/seafile 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
EXPOSE 8000 EXPOSE 8000
CMD ["seahub.sh start"] WORKDIR /opt/seafile
CMD ["/opt/seafile/seahub.sh", "start", "8000"]