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 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
|
||||
|
|
Loading…
Reference in New Issue