2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-07-31 09:36:10 +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 \
&& 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/
#=========================