Streamline COPY statements in Dockerfile (#2747)

This commit is contained in:
Casper 2022-08-30 00:33:15 +02:00 committed by GitHub
parent efed7d9e44
commit e6f481b59f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,8 +69,8 @@ RUN \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
c_rehash 2>&1 c_rehash 2>&1
COPY ./target/scripts/helpers/log.sh /usr/local/bin/helpers/log.sh COPY target/scripts/helpers/log.sh /usr/local/bin/helpers/log.sh
COPY ./target/bin/sedfile /usr/local/bin/sedfile COPY target/bin/sedfile /usr/local/bin/sedfile
RUN chmod +x /usr/local/bin/sedfile RUN chmod +x /usr/local/bin/sedfile
@ -262,19 +262,19 @@ RUN \
rm /etc/postsrsd.secret && \ rm /etc/postsrsd.secret && \
rm /etc/cron.daily/00logwatch rm /etc/cron.daily/00logwatch
COPY ./VERSION / COPY VERSION /
COPY \ COPY \
./target/bin/* \ target/bin/* \
./target/scripts/*.sh \ target/scripts/*.sh \
./target/scripts/startup/*.sh \ target/scripts/startup/*.sh \
./target/scripts/wrapper/*.sh \ target/scripts/wrapper/*.sh \
./target/docker-configomat/configomat.sh \ target/docker-configomat/configomat.sh \
/usr/local/bin/ /usr/local/bin/
RUN chmod +x /usr/local/bin/* RUN chmod +x /usr/local/bin/*
COPY ./target/scripts/helpers /usr/local/bin/helpers COPY target/scripts/helpers /usr/local/bin/helpers
# #
# Final stage focuses only on image config # Final stage focuses only on image config