mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Streamline COPY statements in Dockerfile (#2747)
This commit is contained in:
parent
efed7d9e44
commit
e6f481b59f
18
Dockerfile
18
Dockerfile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue