Commit 0a4fb156 by luiz.nunes

Update Dockerfile

parent add82d49
...@@ -6,6 +6,10 @@ EXPOSE 25 ...@@ -6,6 +6,10 @@ EXPOSE 25
VOLUME ["/var/log", "/var/spool/postfix"] VOLUME ["/var/log", "/var/spool/postfix"]
RUN useradd postfix --gid 0 --uid 1001
USER postfix
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \
yum updateinfo -y && \ yum updateinfo -y && \
yum update -y glibc && \ yum update -y glibc && \
...@@ -14,6 +18,8 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \ ...@@ -14,6 +18,8 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \
yum install -y python34-devel postfix cyrus-sasl cyrus-sasl-plain mailx && \ yum install -y python34-devel postfix cyrus-sasl cyrus-sasl-plain mailx && \
yum clean all yum clean all
RUN useradd -G cartoons jerry
RUN chmod -Rf g+w /etc/postfix && \ RUN chmod -Rf g+w /etc/postfix && \
chmod -Rf g+w /var/log && \ chmod -Rf g+w /var/log && \
chmod -Rf g+w /var/spool/postfix && \ chmod -Rf g+w /var/spool/postfix && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment