12345678910111213141516171819 |
- FROM 3.4-rc-alpine
- # ENV key=value
- WORKDIR /app
- # Install Ruby and Rails
- # 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" ]
- #ruby script/rails server -p8081 webrick -e production -d
|