Last active
July 28, 2022 08:36
-
-
Save kwhandy/45306f668fcc2a5f3759e036c591eae8 to your computer and use it in GitHub Desktop.
Gitpod Custom Configs – @kwhandy
This file contains hidden or 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
FROM gitpod/workspace-full | |
# Install Ruby | |
ENV RUBY_VERSION=3.1.2 | |
RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc | |
RUN bash -lc "rvm install ruby-$RUBY_VERSION && rvm use ruby-$RUBY_VERSION --default" | |
RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc | |
# Install Node and Yarn | |
ENV NODE_VERSION=16.16.0 | |
RUN bash -c ". .nvm/nvm.sh && \ | |
nvm install ${NODE_VERSION} && \ | |
nvm alias default ${NODE_VERSION} && \ | |
npm install -g yarn" | |
ENV PATH=/home/gitpod/.nvm/versions/node/v${NODE_VERSION}/bin:$PATH |
This file contains hidden or 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
image: | |
file: .gitpod.Dockerfile | |
tasks: | |
- name: Setup NPM Packages and Gems for App | |
init: yarn install && bundle install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment