- FROM gitpod/workspace-postgres
- USER gitpod
- COPY --chown=gitpod:gitpod .ruby-version /tmp
- RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc
- RUN bash -lc "rvm reinstall ruby-$(cat /tmp/.ruby-version) && rvm use ruby-$(cat /tmp/.ruby-version) --default && gem install rails"
- RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc
|