only copy required folders from seahub

This commit is contained in:
Gerrit Gogel 2024-07-28 14:34:51 +02:00
parent 223677ae9a
commit bea3bc7f11

View file

@ -1,3 +1,4 @@
# syntax=docker/dockerfile:1.7-labs
FROM alpine:3.20.2 AS get FROM alpine:3.20.2 AS get
RUN apk add --no-cache wget RUN apk add --no-cache wget
@ -56,7 +57,10 @@ python3 \
COPY --from=pip /pip-deps /usr/local/lib/python3.10/dist-packages COPY --from=pip /pip-deps /usr/local/lib/python3.10/dist-packages
COPY --from=get /tmp/seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-${SEAFILE_VERSION} COPY --from=get --exclude=/tmp/seafile-server-${SEAFILE_VERSION}/seahub /tmp/seafile-server-${SEAFILE_VERSION} /opt/seafile/seafile-server-${SEAFILE_VERSION}
COPY --from=get /tmp/seafile-server-${SEAFILE_VERSION}/seahub/thirdpart/seafobj /opt/seafile/seafile-server-${SEAFILE_VERSION}/seahub/thirdpart/seafobj
COPY --from=get /tmp/seafile-server-${SEAFILE_VERSION}/seahub/scripts /opt/seafile/seafile-server-${SEAFILE_VERSION}/seahub/thirdpart/scripts
COPY --from=get /tmp/seafile-server-${SEAFILE_VERSION}/seahub/media/avatars /opt/seafile/seafile-server-${SEAFILE_VERSION}/seahub/media/avatars
COPY scripts /scripts COPY scripts /scripts
RUN chmod u+x /scripts/* RUN chmod u+x /scripts/*