optimize size

This commit is contained in:
CatDeployed 2018-05-27 17:50:41 -04:00
parent b48aaff209
commit 3c0dec95da

View File

@ -1,7 +1,7 @@
FROM ruby:2.4
RUN apt-get -y update \
&& apt-get -y install --no-install-recommends nodejs mysql-client git-core python-minimal python-pip python-dev libcap2-bin \
&& apt-get -y install --no-install-recommends nodejs mysql-client git-core python-minimal python-pip python-dev libcap2-bin python-setuptools \
&& pip install j2cli \
&& git clone https://github.com/atech/postal.git /opt/postal \
&& rm -rf /var/lib/apt/lists/* \
@ -10,7 +10,7 @@ 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 purge python-dev git-core python-setuptools \
&& apt-get -y autoremove \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*