Don't change ownership at build time, allow all to execute the entrypoint
This commit is contained in:
@@ -30,6 +30,7 @@ COPY assets/supervisord.conf /.supervisord/
|
|||||||
COPY assets/infinite-seaf-cli-start.sh /
|
COPY assets/infinite-seaf-cli-start.sh /
|
||||||
COPY assets/change-ownership.sh /
|
COPY assets/change-ownership.sh /
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
|
RUN chmod 777 /entrypoint.sh
|
||||||
|
|
||||||
# Safely import Seafile APT key, then install both seafile-cli and supervisord.
|
# Safely import Seafile APT key, then install both seafile-cli and supervisord.
|
||||||
COPY utils/build/import-seafile-apt-key.sh /
|
COPY utils/build/import-seafile-apt-key.sh /
|
||||||
@@ -42,7 +43,6 @@ RUN rm -f /import-seafile-apt-key.sh
|
|||||||
ENV UNAME=seafuser
|
ENV UNAME=seafuser
|
||||||
ENV UID=1000
|
ENV UID=1000
|
||||||
ENV GID=1000
|
ENV GID=1000
|
||||||
RUN /bin/bash /change-ownership.sh
|
|
||||||
USER $UNAME
|
USER $UNAME
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
||||||
Reference in New Issue
Block a user