Browse Source

Add 'ruby/.gitpod.Dockerfile'

天问 3 years ago
parent
commit
09716eadee
1 changed files with 8 additions and 0 deletions
  1. 8 0
      ruby/.gitpod.Dockerfile

+ 8 - 0
ruby/.gitpod.Dockerfile

@@ -0,0 +1,8 @@
+FROM gitpod/workspace-postgres
+USER gitpod
+
+# 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