Skip to content

Commit 0b28a2d

Browse files
YOU54Fbethesque
authored andcommitted
feat: upgrade and add cleanup steps for apt-get upgrade
1 parent 80dae57 commit 0b28a2d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
# |==> phusion/baseimage -- https://github.com/phusion/baseimage-docker
33
# |==> phusion/passenger-docker -- https://github.com/phusion/passenger-docker
44
# |==> HERE
5-
FROM phusion/passenger-ruby24:1.0.0
5+
FROM phusion/passenger-ruby24:1.0.5
66

77
# Update OS as per https://github.com/phusion/passenger-docker#upgrading-the-operating-system-inside-the-container
8-
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold"
8+
RUN apt-get update & \
9+
apt-get upgrade -y -o Dpkg::Options::="--force-confold" & \
10+
apt-get -qy autoremove & \
11+
apt-get clean & \
12+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
13+
914
RUN bash -lc 'rvm --default use ruby-2.4.5'
1015

1116
ENV APP_HOME=/home/app/pact_broker/

0 commit comments

Comments
 (0)