postal/Dockerfile

24 lines
567 B
Docker
Raw Normal View History

2017-04-26 22:35:49 +02:00
FROM ruby:2.4
## Clone postal
2017-09-12 05:01:31 +02:00
COPY src /opt/postal
2017-04-26 22:35:49 +02:00
2017-09-12 05:01:31 +02:00
RUN apt-get -y update \
&& apt-get -y install nodejs mysql-client \
&& rm -rf /var/lib/apt/lists/* \
&& gem install bundler \
&& gem install procodile \
&& useradd -r -d /opt/postal -s /bin/bash postal \
&& chown -R postal:postal /opt/postal/ \
&& /opt/postal/bin/postal bundle /opt/postal/vendor/bundle \
&& mv /opt/postal/config /opt/postal/config-original
2017-04-27 11:38:13 +02:00
2017-05-06 04:31:47 +02:00
## Stick in required files
ADD wrapper.sh /wrapper.sh
2017-04-26 22:38:01 +02:00
2017-04-27 10:48:51 +02:00
## Expose
EXPOSE 5000
2017-04-27 09:50:07 +02:00
## Startup
2017-05-06 04:31:47 +02:00
ENTRYPOINT ["/bin/bash", "-c", "/wrapper.sh ${*}", "--"]