Single COPY to reduce number of layers

This commit is contained in:
Manuel Gutierrez 2019-11-29 11:44:46 +01:00
parent aa1686300a
commit de6031105c
1 changed files with 2 additions and 4 deletions

View File

@ -10,13 +10,11 @@ RUN yum install -y epel-release && yum update -y && \
RUN sed -i -e "s/^nodaemon=false/nodaemon=true/" /etc/supervisord.conf
RUN sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf
COPY etc/*.conf /etc/
COPY etc/rsyslog.d/* /etc/rsyslog.d
COPY etc/ /etc/
COPY run.sh /
RUN chmod +x /run.sh
COPY etc/supervisord.d/*.ini /etc/supervisord.d/
RUN newaliases
EXPOSE 25
#ENTRYPOINT ["/run.sh"]
CMD ["/run.sh"]
CMD ["/run.sh"]