Skip to content

Commit

Permalink
fix(.gitpod.yml): use lts node (freeCodeCamp#49382)
Browse files Browse the repository at this point in the history
* fix: use lts node in gitpod

* fix: use custom Dockerfile

* fix: actually use the image...
  • Loading branch information
ojeytonwilliams authored Feb 14, 2023
1 parent 96a821a commit 3a1ad99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM gitpod/workspace-mongodb:latest

# from https://www.gitpod.io/docs/introduction/languages/javascript#node-versions
RUN bash -c 'VERSION="lts/*" \
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \
&& nvm use $VERSION && nvm alias default $VERSION'

RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
3 changes: 2 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
image: gitpod/workspace-mongodb
image:
file: .gitpod.Dockerfile
ports:
- port: 27017 # mongodb
onOpen: ignore
Expand Down

0 comments on commit 3a1ad99

Please sign in to comment.