From ff64c8ff3992574f5bc94b9b6afd928fe4705a81 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Mon, 16 Sep 2024 19:06:31 +0530 Subject: [PATCH] fix(docker): gitpod - streamline installing deps --- docker/gitpod-fcc/Dockerfile | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/docker/gitpod-fcc/Dockerfile b/docker/gitpod-fcc/Dockerfile index 6101adeb..fb710a9e 100644 --- a/docker/gitpod-fcc/Dockerfile +++ b/docker/gitpod-fcc/Dockerfile @@ -4,26 +4,6 @@ LABEL org.opencontainers.image.source=https://github.com/freecodecamp/infra LABEL org.opencontainers.image.description="A Gitpod image for the freeCodeCamp.org main repo." LABEL org.opencontainers.image.licenses=BSD-3-Clause -# Install dependencies using Gitpod's install-packages script -RUN sudo install-packages \ - # Core system libraries - ca-certificates libc6 libgcc1 libstdc++6 \ - # X11 and graphics libraries - libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 \ - libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libgbm1 libgles2 \ - # GTK and related libraries - libatk1.0-0 libatk-bridge2.0-0 libappindicator3-1 \ - libcairo2 libpango-1.0-0 libpangocairo-1.0-0 \ - # Font and text rendering - fonts-liberation libfontconfig1 libharfbuzz-icu0 libwoff1 \ - # Audio and video - libvpx7 libopus0 libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good \ - # Miscellaneous libraries - libcups2 libdbus-1-3 libexpat1 libglib2.0-0 libnspr4 \ - libenchant-2-2 libsecret-1-0 libhyphen0 libmanette-0.2-0 libflite1 \ - # Utilities - lsb-release wget xdg-utils - # from https://www.gitpod.io/docs/introduction/languages/javascript#node-versions RUN bash -c 'VERSION="20" \ && source $HOME/.nvm/nvm.sh && nvm install $VERSION \ @@ -32,4 +12,4 @@ RUN bash -c 'VERSION="20" \ RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix -RUN npx -y playwright install --with-deps chromium +RUN pnpm exec playwright install --with-deps chromium