Skip to content

Commit ec2361c

Browse files
committed
fix(docker): gitpod - streamline installing deps
1 parent b312ff1 commit ec2361c

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

docker/gitpod-fcc/Dockerfile

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,10 @@ LABEL org.opencontainers.image.source=https://github.com/freecodecamp/infra
44
LABEL org.opencontainers.image.description="A Gitpod image for the freeCodeCamp.org main repo."
55
LABEL org.opencontainers.image.licenses=BSD-3-Clause
66

7-
# Install dependencies using Gitpod's install-packages script
8-
RUN sudo install-packages \
9-
# Core system libraries
10-
ca-certificates libc6 libgcc1 libstdc++6 \
11-
# X11 and graphics libraries
12-
libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 \
13-
libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libgbm1 libgles2 \
14-
# GTK and related libraries
15-
libatk1.0-0 libatk-bridge2.0-0 libappindicator3-1 \
16-
libcairo2 libpango-1.0-0 libpangocairo-1.0-0 \
17-
# Font and text rendering
18-
fonts-liberation libfontconfig1 libharfbuzz-icu0 libwoff1 \
19-
# Audio and video
20-
libvpx7 libopus0 libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
21-
# Miscellaneous libraries
22-
libcups2 libdbus-1-3 libexpat1 libglib2.0-0 libnspr4 \
23-
libenchant-2-2 libsecret-1-0 libhyphen0 libmanette-0.2-0 libflite1 \
24-
# Utilities
25-
lsb-release wget xdg-utils
26-
277
# from https://www.gitpod.io/docs/introduction/languages/javascript#node-versions
288
RUN bash -c 'VERSION="20" \
299
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \
3010
&& nvm use $VERSION && nvm alias default $VERSION \
31-
&& npm i -g pnpm@9'
32-
33-
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
34-
35-
RUN npx -y playwright install --with-deps chromium
11+
&& npm i -g pnpm@9 \
12+
&& echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix \
13+
&& pnpm dlx playwright install --with-deps chromium'

0 commit comments

Comments
 (0)