Combine RUN commands in Dockerfile where possible

This commit is contained in:
Andreas Nedbal 2020-05-09 10:36:00 +02:00
parent ccb8b47e6e
commit 4c95747959
1 changed files with 4 additions and 5 deletions

View File

@ -2,14 +2,13 @@ FROM ruby:2.7
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get update -qq && \ RUN apt-get update -qq \
apt-get install -y --no-install-recommends build-essential \ && apt-get install -y --no-install-recommends build-essential \
libpq-dev postgresql-client \ libpq-dev postgresql-client \
libxml2-dev libxslt1-dev \ libxml2-dev libxslt1-dev \
libmagickwand-dev imagemagick \ libmagickwand-dev imagemagick \
nodejs nodejs \
&& rm -rf /var/lib/apt/lists/*
RUN rm -rf /var/lib/apt/lists/*
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app