refactor(gitpod): update playwright, add mailhog and other ports (#56123)

This commit is contained in:
Mrugesh Mohapatra
2024-09-17 15:57:58 +05:30
committed by GitHub
parent 5c4fd56e60
commit 3ff2ef19bb
5 changed files with 287 additions and 92 deletions

13
docker/gitpod/Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM gitpod/workspace-mongodb:latest
LABEL org.opencontainers.image.source=https://github.com/freecodecamp/freecodecamp \
org.opencontainers.image.description="A Gitpod image for the main freeCodeCamp repository" \
org.opencontainers.image.licenses=BSD-3-Clause
# from https://www.gitpod.io/docs/introduction/languages/javascript#node-versions
RUN bash -c 'VERSION="20" \
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \
&& nvm use $VERSION && nvm alias default $VERSION \
&& npm i -g pnpm@9 \
&& echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix \
&& pnpm dlx playwright@1.47.1 install --with-deps chromium'