Commit c14d4e89 authored by Kayla's avatar Kayla 🍪
Browse files

this saves ~200MB from the apt

You need to make sure to always run everything in a single RUN.

This avoids the issue around apt caches being stuck in a layer.

While we are here, save an extraction / layer pull by moving sentry-cli into the previous RUN
parent 9a380f15
Pipeline #1336 passed with stage
in 4 minutes and 48 seconds
......@@ -2,9 +2,9 @@ FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -q && apt-get full-upgrade -y && apt-get install -y software-properties-common gpg wget
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - \
RUN apt-get update -q && apt-get full-upgrade -y \
&& apt-get install -y software-properties-common gpg wget \
&& wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - \
&& apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main' \
&& apt-get update && apt-get install kitware-archive-keyring \
&& apt-key --keyring /etc/apt/trusted.gpg del C1F34CDD40CD72DA \
......@@ -20,11 +20,9 @@ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/nul
echo 'fr_FR.UTF-8 UTF-8' >> /etc/locale.gen && \
echo 'en_GB.UTF-8 UTF-8' >> /etc/locale.gen && \
locale-gen && \
rm -rf /var/lib/apt/lists/*
# Add sentry-cli tool
ADD https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Linux-x86_64 /usr/local/bin/sentry-cli
RUN chmod 0755 /usr/local/bin/sentry-cli
rm -rf /var/lib/apt/lists/* && \
wget -O /usr/local/bin/sentry-cli https://downloads.sentry-cdn.com/sentry-cli/1.71.0/sentry-cli-Linux-x86_64 && \
chmod 0755 /usr/local/bin/sentry-cli
# Set the locale
ENV LANG en_US.UTF-8
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment