diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a923de538..10041feb7 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -43,11 +43,15 @@ RUN if [ "${NODE_VERSION}" != "none" ]; then \ # RUN pip3 --disable-pip-version-check --no-cache-dir install -r \ # /tmp/pip-tmp/requirements.txt && rm -rf /tmp/pip-tmp -RUN sudo apt-get update && \ - sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \ - # psql is useful and needed in the container post-create commands. - postgresql-contrib \ - # A JRE is needed to run SonarLint. - default-jre \ - # X is needed to run the Cypress GUI. - libasound2 libgconf-2-4 libgtk-3-dev libnotify-dev libnss3 libxss1 xvfb +RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - + + # Add the Yarn package repository to APT sources + RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list + + # Update APT package lists and install required packages + RUN sudo apt-get update && \ + sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \ + postgresql-contrib \ + default-jre \ + libasound2 libgconf-2-4 libgtk-3-dev libnotify-dev libnss3 libxss1 xvfb + diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index cbdde676b..ffb699272 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -32,7 +32,7 @@ services: VARIANT: '0.201.2-3.8' # Node.js version to install - NODE_VERSION: '14.17.5' + NODE_VERSION: '20.11.1' context: '..'