Cleanup packages used at user creation
[mbt-docker.git] / Dockerfile
index 0ba08cb7f2f1f4ef907d4d321a523aa895298273..db4ae9794031cfeb550bac11dffb7741736e6086 100644 (file)
@@ -17,8 +17,9 @@ RUN set -ex \
             --uid 1000 \
             --comment 'Cloud MTA Build Tool' \
             --password "$(echo weUseMta | openssl passwd -1 -stdin)" ${USER} \
-    # allow anybody to write into the image user home directory
-    && chmod a+w ${USER_HOME_DIR}
+  # allow anybody to write into the image user home directory
+  && chmod a+w ${USER_HOME_DIR} \
+  && apt-get remove --purge --autoremove -y openssl
 
 ADD http://aia.pki.co.sap.com/aia/SAP%20Global%20Root%20CA.crt \
     /etc/ssl/certs/SAP_Global_Root_CA.crt