From a746e61918e202b6db2671afc13dd480c56a0761 Mon Sep 17 00:00:00 2001 From: Noricks <476852755@QQ.com> Date: Sun, 25 Dec 2022 02:15:32 +0800 Subject: [PATCH] Add lost package for Codespaces Dockerfile (#2260) --- .devcontainer/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e82ddc80b21..502ccf535f5 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,9 @@ ARG VARIANT=11 FROM mcr.microsoft.com/vscode/devcontainers/java:${VARIANT} +# Allow to use the VARIANT after FROM +ARG VARIANT + # [Optional] Install Maven or Gradle ARG INSTALL_MAVEN="false" ARG MAVEN_VERSION=3.6.3 @@ -14,6 +17,11 @@ ARG INSTALL_NODE="true" ARG NODE_VERSION="lts/*" RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi +# Install the lost package `fontconfig` for VARIANT 11 +RUN if [ "${VARIANT}" = "11" ]; then \ + apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends fontconfig; fi + # [Optional] Uncomment this section to install additional OS packages. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ # && apt-get -y install --no-install-recommends