Combine RUN commands in Dockerfile where possible
This commit is contained in:
parent
ccb8b47e6e
commit
4c95747959
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue