2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-10-05 05:03:53 +00:00

Replace multiple ADD/RUN with ADD --chmod

Reduce the layer count, and simplify the steps involved.
This commit is contained in:
Joe Groocock 2021-02-05 09:21:54 +00:00
parent 8654abcbb1
commit 5e2742b978
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -175,9 +175,10 @@ RUN find /output -exec sh -c 'file "{}" | grep -q ELF && strip --strip-debug "{}
&& apt-get -y install execstack \
&& execstack -c /output/usr/lib/*.so*
ADD entrypoint /output/usr/local/bin/
ADD *.sh /output/usr/local/bin/
RUN chmod +x /output/usr/local/bin/*
ADD --chmod=755 \
entrypoint \
*.sh \
/output/usr/local/bin/
#=========================