Skip to content

Instantly share code, notes, and snippets.

@kwhandy
Last active July 28, 2022 08:36
Show Gist options
  • Save kwhandy/45306f668fcc2a5f3759e036c591eae8 to your computer and use it in GitHub Desktop.
Save kwhandy/45306f668fcc2a5f3759e036c591eae8 to your computer and use it in GitHub Desktop.
Gitpod Custom Configs – @kwhandy
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
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