From 9d39f730f67890cbd58ec5c0f8f77ededafd1fbc Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Ballesteros Date: Fri, 24 Nov 2023 19:59:05 +0100 Subject: [PATCH] Fix devcontainer for ubuntu jammy (#114) --- .devcontainer/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a99632b8..0e5da3e1 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -48,7 +48,11 @@ RUN sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get install - x264 && \ sudo rm -rf /var/lib/apt/lists/* -RUN . /etc/lsb-release; if [ "${DISTRIB_RELEASE}" \> "20.04" ]; then apt-get install --no-install-recommends -y xcvt; fi +RUN . /etc/lsb-release; if [ "${DISTRIB_RELEASE}" \> "20.04" ]; then \ + apt-get update && \ + apt-get install --no-install-recommends -y xcvt && \ + rm -rf /var/lib/apt/lists/*; \ + fi # Download and extract latest GStreamer component RUN cd /opt && . /etc/lsb-release && SELKIES_VERSION=$(curl -fsSL "https://api.github.com/repos/selkies-project/selkies-gstreamer/releases/latest" | jq -r '.tag_name' | sed 's/[^0-9\.\-]*//g') && \