Skip to content

Commit

Permalink
apt-get
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed May 25, 2024
1 parent 872ef48 commit 6a21a58
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,9 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
# Setup cache
&& rm -f /etc/apt/apt.conf.d/docker-clean \
&& echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' >/etc/apt/apt.conf.d/keep-cache \
# Install and setup apt-fast
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA2166B8DE8BDC3367D1901C11EE2FF37CA8DA16B" | gpg --dearmor -o "/etc/apt/keyrings/apt-fast.gpg" \
&& echo "deb [signed-by=/etc/apt/keyrings/apt-fast.gpg] http://ppa.launchpad.net/apt-fast/stable/ubuntu jammy main" >> "/etc/apt/sources.list.d/apt-fast.list" \
&& apt-get update \
&& apt-get install -y --no-install-recommends apt-fast \
# Install necessary tools and libs to build GStreamer
&& apt-fast update \
&& apt-fast install --assume-yes --no-install-recommends \
&& apt-get update \
&& apt-get install --assume-yes --no-install-recommends \
# TOOLS:
apt-transport-https \
bison \
Expand Down Expand Up @@ -87,11 +81,11 @@ ARG LIBCAMERA_ENABLED
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
if [ "$LIBCAMERA_ENABLED" = "true" ]; then \
apt-fast update \
&& apt-fast install --assume-yes --no-install-recommends \
apt-get update \
&& apt-get install --assume-yes --no-install-recommends \
libboost-dev \
libgnutls28-dev \
libyaml-dev \
libyaml-dev ; \
fi

# Install pip dependencies
Expand Down Expand Up @@ -237,15 +231,9 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
# Setup cache
&& rm -f /etc/apt/apt.conf.d/docker-clean \
&& echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' >/etc/apt/apt.conf.d/keep-cache \
# Install and setup apt-fast
&& mkdir -p /etc/apt/keyrings \
&& curl -fsSL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA2166B8DE8BDC3367D1901C11EE2FF37CA8DA16B" | gpg --dearmor -o "/etc/apt/keyrings/apt-fast.gpg" \
&& echo "deb [signed-by=/etc/apt/keyrings/apt-fast.gpg] http://ppa.launchpad.net/apt-fast/stable/ubuntu jammy main" >> "/etc/apt/sources.list.d/apt-fast.list" \
&& apt-get update \
&& apt-get install -y --no-install-recommends apt-fast \
# Install necessary tools and libs for basic use
&& apt-fast update \
&& apt-fast install --assume-yes --no-install-recommends \
&& apt-get update \
&& apt-get install --assume-yes --no-install-recommends \
# TOOLS:
bat \
bzip2 \
Expand Down

0 comments on commit 6a21a58

Please sign in to comment.