- FROM gitpod/workspace-postgres
- USER gitpod
- WORKDIR /app
- # Install the Ruby version specified in '.ruby-version'
- 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
- # EXPOSE 8080
- # VOLUME [ "/data" ]
- CMD [ "/bin/bash" ]
|