try minimal

This commit is contained in:
CatDeployed 2018-07-24 01:05:40 -04:00
parent 720f35aeb1
commit 18fc28f2c5

View File

@ -1,6 +1,6 @@
FROM ruby:2.4-alpine FROM ruby:2.4-alpine
RUN apk --no-cache add nodejs mysql-client git bash python libcap py-setuptools py-pip build-base python-dev mariadb-dev tzdata \ RUN apk --no-cache add nodejs mariadb-client git bash python2 libcap py-setuptools py-pip build-base python-dev mariadb-dev tzdata \
&& pip install j2cli \ && pip install j2cli \
&& git clone https://github.com/atech/postal.git /opt/postal \ && git clone https://github.com/atech/postal.git /opt/postal \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
@ -11,6 +11,7 @@ RUN apk --no-cache add nodejs mysql-client git bash python libcap py-setuptools
&& adduser -S -G postal -h /opt/postal -s /bin/bash postal \ && adduser -S -G postal -h /opt/postal -s /bin/bash postal \
&& chown -R postal:postal /opt/postal/ \ && chown -R postal:postal /opt/postal/ \
&& /opt/postal/bin/postal bundle /opt/postal/vendor/bundle \ && /opt/postal/bin/postal bundle /opt/postal/vendor/bundle \
&& apk del mariadb-dev git \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*
## Adjust permissions ## Adjust permissions