1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-31 03:25:45 +00:00
Files
wrestlingdev.com/rails-dev-Dockerfile
Jacob Cody Wimer c8a09956f4 Revert "Using a more lightweight image and using rvm for ruby"
This reverts commit 621813a015.

I could not get the lightweight docker image working correctly with rvm. I will most likely switch back to this image in the future when I have more time to work on it.
2016-03-03 09:56:24 -05:00

28 lines
768 B
Plaintext

FROM ruby:2.3.0
RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y nodejs sqlite3
ENV WRESTLINGDEV_SECRET_KEY_BASE 077cdbef5c2ccf22543fb17a67339f234306b7fa2e1e4463d851c444c10a5611829a2290b253da78339427f131571fac9a42c83d960b2d25ecc10a4a0a7ce1a2
ENV WRESTLINGDEV_DEVISE_SECRET_KEY 2f29d49db6704377ba263f7cb9db085b386bcb301c0cd501126a674686ab1a109754071165b08cd72af03cec4642a4dd04361c994462254dd5d85e9594e8b9aa
RUN gem install --no-rdoc --no-ri bundler
ADD Gemfile* /tmp/
WORKDIR /tmp
RUN bundle install --without production
RUN npm install -g lineman
ADD frontend/package.json /tmp/
RUN npm install
RUN mkdir /rails
WORKDIR /rails
RUN cp -a /tmp/node_modules /rails/frontend/node_modules
VOLUME ["/rails"]
EXPOSE 3000
CMD /bin/bash