Skip to content

Commit

Permalink
Improve dockerfile to reduce image size (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux authored Jan 9, 2023
1 parent 054b1fe commit d79b8b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ARG ESLINT_VERSION="7.32.0"
ARG STYLELINT_VERSION="13.13.1"
ARG NODE_VERSION=14

RUN apt-get update && apt-get install -y curl
RUN apt-get update && apt-get install --no-install-recommends -y curl && rm -rf /var/lib/apt/lists/*;
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash -

RUN apt-get update && \
apt-get install -y \
apt-get install --no-install-recommends -y \
ruby-dev \
build-essential \
cmake \
Expand All @@ -23,8 +23,8 @@ RUN apt-get update && \
&& rm -rf /var/lib/apt/lists/*

RUN gem install bundler --version "${BUNDLER_VERSION}"
RUN npm install -g eslint@${ESLINT_VERSION}
RUN npm install stylelint@${STYLELINT_VERSION}
RUN npm install -g eslint@${ESLINT_VERSION} && npm cache clean --force;
RUN npm install stylelint@${STYLELINT_VERSION} && npm cache clean --force;

WORKDIR /runner

Expand Down

0 comments on commit d79b8b6

Please sign in to comment.