Skip to content

Commit

Permalink
feat: upgrade and add cleanup steps for apt-get upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F authored and bethesque committed Mar 24, 2019
1 parent 80dae57 commit 0b28a2d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
# |==> 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
FROM phusion/passenger-ruby24:1.0.5

# 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 apt-get update & \
apt-get upgrade -y -o Dpkg::Options::="--force-confold" & \
apt-get -qy autoremove & \
apt-get clean & \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN bash -lc 'rvm --default use ruby-2.4.5'

ENV APP_HOME=/home/app/pact_broker/
Expand Down

0 comments on commit 0b28a2d

Please sign in to comment.