Skip to content

Commit

Permalink
Using workspace-base to create a custom gitpod env image
Browse files Browse the repository at this point in the history
* Adding custom dockerfile to gitpod yml

* Installing node through nvm instead of nodesource

* Using LTS node from nvm and removing typescript

* Removing yarn
  • Loading branch information
dhillonks authored and humphd committed Dec 8, 2021
1 parent c092a7f commit a3f1a3e
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
FROM gitpod/workspace-full
FROM gitpod/workspace-base

# Installing Node LTS
# https://github.com/nvm-sh/nvm#installing-and-updating
USER gitpod
RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash \
&& bash -c ". .nvm/nvm.sh \
&& nvm install --lts \
&& nvm alias default lts/* \
&& npm install -g pnpm"

# Installing docker
# https://docs.docker.com/engine/install/ubuntu/
USER root
RUN curl -o /var/lib/apt/dazzle-marks/docker.gpg -fsSL https://download.docker.com/linux/ubuntu/gpg \
&& apt-key add /var/lib/apt/dazzle-marks/docker.gpg \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
&& install-packages docker-ce docker-ce-cli containerd.io

RUN curl -o /usr/bin/slirp4netns -fsSL https://github.com/rootless-containers/slirp4netns/releases/download/v1.1.12/slirp4netns-$(uname -m) \
&& chmod +x /usr/bin/slirp4netns

RUN curl -o /usr/local/bin/docker-compose -fsSL https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64 \
&& chmod +x /usr/local/bin/docker-compose

# Install pnpm
RUN npm install -g pnpm

0 comments on commit a3f1a3e

Please sign in to comment.