Skip to content

Commit

Permalink
feat(docker): create image for gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
raisedadead committed Sep 11, 2024
1 parent 9ada09d commit 1ff7a2e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker--ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
strategy:
fail-fast: false
matrix:
images: [landing]
images:
- landing
- gitpod-fcc

steps:
- name: Checkout code
Expand Down
49 changes: 49 additions & 0 deletions docker/gitpod-fcc/Dockerfile
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

0 comments on commit 1ff7a2e

Please sign in to comment.