-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using workspace-base to create a custom gitpod env image
* 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
Showing
1 changed file
with
24 additions
and
3 deletions.
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
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 |