forked from DiUS/pact_broker-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (19 loc) · 951 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# ubuntu -- https://hub.docker.com/_/ubuntu/
# |==> phusion/baseimage -- https://github.com/phusion/baseimage-docker
# |==> phusion/passenger-docker -- https://github.com/phusion/passenger-docker
# |==> HERE
FROM phusion/passenger-ruby24:1.0.0
# Update OS as per https://github.com/phusion/passenger-docker#upgrading-the-operating-system-inside-the-container
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold"
RUN bash -lc 'rvm --default use ruby-2.4.5'
ENV APP_HOME=/home/app/pact_broker/
RUN rm -f /etc/service/nginx/down /etc/nginx/sites-enabled/default
COPY container /
#USER app
COPY --chown=app pact_broker/ $APP_HOME/
RUN cd $APP_HOME && \
gem install --no-document --minimal-deps bundler && \
bundle install --deployment --without='development test' && \
rm -rf vendor/bundle/ruby/2.4.0/cache/ /usr/local/rvm/rubies/ruby-2.4.4/lib/ruby/gems/2.4.0/cache
EXPOSE 80
CMD ["/sbin/my_init"]