Dockerfile 532 B

12345678910111213141516171819
  1. FROM 3.4-rc-alpine
  2. # ENV key=value
  3. WORKDIR /app
  4. # Install Ruby and Rails
  5. # Install the Ruby version specified in '.ruby-version'
  6. COPY --chown=gitpod:gitpod .ruby-version /tmp
  7. RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc
  8. RUN bash -lc "rvm reinstall ruby-$(cat /tmp/.ruby-version) && rvm use ruby-$(cat /tmp/.ruby-version) --default && gem install rails"
  9. RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc
  10. # EXPOSE 8080
  11. # VOLUME [ "/data" ]
  12. CMD [ "/bin/bash" ]
  13. #ruby script/rails server -p8081 webrick -e production -d