Skip to content

Commit

Permalink
Add lost package for Codespaces Dockerfile (#2260)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noricks authored Dec 24, 2022
1 parent b4c9014 commit a746e61
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 <your-package-list-here>
Expand Down

0 comments on commit a746e61

Please sign in to comment.