From 4c9574795910eba14cbf022cb3112ff6ea1a9068 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sat, 9 May 2020 10:36:00 +0200 Subject: [PATCH] Combine RUN commands in Dockerfile where possible --- .docker/ruby/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.docker/ruby/Dockerfile b/.docker/ruby/Dockerfile index a6775f9c..88cf8de1 100644 --- a/.docker/ruby/Dockerfile +++ b/.docker/ruby/Dockerfile @@ -2,14 +2,13 @@ FROM ruby:2.7 RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - -RUN apt-get update -qq && \ - apt-get install -y --no-install-recommends build-essential \ +RUN apt-get update -qq \ + && apt-get install -y --no-install-recommends build-essential \ libpq-dev postgresql-client \ libxml2-dev libxslt1-dev \ libmagickwand-dev imagemagick \ - nodejs - -RUN rm -rf /var/lib/apt/lists/* + nodejs \ + && rm -rf /var/lib/apt/lists/* RUN mkdir /app WORKDIR /app