2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-12-20 11:34:36 +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 34bde0e314
commit 38184e71fb
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 \ && apt-get -y install execstack \
&& execstack -c /output/usr/lib/*.so* && execstack -c /output/usr/lib/*.so*
ADD entrypoint /output/usr/local/bin/ ADD --chmod=755 \
ADD *.sh /output/usr/local/bin/ entrypoint \
RUN chmod +x /output/usr/local/bin/* *.sh \
/output/usr/local/bin/
#========================= #=========================