From 41f7f633378967b8fedd794f6ff6257cf76c4c22 Mon Sep 17 00:00:00 2001 From: CatDeployed Date: Sun, 27 May 2018 17:46:59 -0400 Subject: [PATCH] optimize size --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9c9a20c..c272f87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,8 @@ RUN apt-get -y update \ && useradd -r -d /opt/postal -s /bin/bash postal \ && chown -R postal:postal /opt/postal/ \ && /opt/postal/bin/postal bundle /opt/postal/vendor/bundle \ + && apt-get -y purge python-dev git-core \ + && apt-get -y autoremove \ && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ## Adjust permissions