Dockerfile in xcflushd-1.1.0 vs Dockerfile in xcflushd-1.2.0

- old
+ new

@@ -31,11 +31,11 @@ && dpkg-reconfigure --frontend ${DEBIAN_FRONTEND} tzdata \ && apt-get -y -q autoremove --purge \ && chown -R ${USER_NAME}: ${USER_HOME} \ && apt-get -y -q clean -RUN apt-get install -y -q openjdk-8-jre +RUN apt-get install -y -q openjdk-8-jre && apt-get -y -q clean USER ${USER_NAME} ARG RBENV_ROOT="${USER_HOME}/.rbenv" ARG RBENV_BINPATH="${RBENV_ROOT}/bin" @@ -65,11 +65,11 @@ ARG BUILD_DEPS="libyaml-dev libreadline-dev libncurses-dev libffi-dev libgdbm3 libgdbm-dev" USER root RUN test -z "${BUILD_DEPS}" \ || ( \ - apt-get update && apt-get install -y -q ${BUILD_DEPS} \ + apt-get update && apt-get install -y -q ${BUILD_DEPS} && apt-get -y -q clean \ ) WORKDIR ${APP_HOME} COPY .ruby-version .ruby-gemset ${APP_HOME}/ @@ -79,10 +79,11 @@ && rbenv rehash \ && echo 'gem: --no-document' >> ~/.gemrc \ && gem update --system \ && ( bundler --version || gem install bundler ) \ && bundle config --global jobs `grep -c processor /proc/cpuinfo` \ - && bundle config --global cache_all true + && bundle config --global cache_all true \ + && gem cleanup all COPY Gemfile Gemfile.lock xcflushd.gemspec ${APP_HOME}/ COPY lib/xcflushd/version.rb ${APP_HOME}/lib/xcflushd/ USER root RUN chown -R ${USER_NAME}: ${APP_HOME}