-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docker): create image for gitpod
- Loading branch information
1 parent
9ada09d
commit 1ff7a2e
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM gitpod/workspace-mongodb:latest | ||
|
||
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 | ||
|
||
RUN sudo install-packages \ | ||
ca-certificates \ | ||
fonts-liberation \ | ||
libappindicator3-1 \ | ||
libatk-bridge2.0-0 \ | ||
libatk1.0-0 \ | ||
libc6 \ | ||
libcairo2 \ | ||
libcups2 \ | ||
libdbus-1-3 \ | ||
libexpat1 \ | ||
libfontconfig1 \ | ||
libgbm1 \ | ||
libgcc1 \ | ||
libglib2.0-0 \ | ||
libnspr4 \ | ||
libpango-1.0-0 \ | ||
libpangocairo-1.0-0 \ | ||
libstdc++6 \ | ||
libx11-6 \ | ||
libx11-xcb1 \ | ||
libxcb1 \ | ||
libxcomposite1 \ | ||
libxcursor1 \ | ||
libxdamage1 \ | ||
libxext6 \ | ||
libxfixes3 \ | ||
libxi6 \ | ||
libxrandr2 \ | ||
libxrender1 \ | ||
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 \ | ||
&& nvm use $VERSION && nvm alias default $VERSION \ | ||
&& npm i -g pnpm@9' | ||
|
||
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix | ||
|
||
RUN npx -y puppeteer browsers install chrome |