Created
October 27, 2015 11:18
-
-
Save douglaslise/3804031d5b0e3bebddb2 to your computer and use it in GitHub Desktop.
Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.2 | |
MAINTAINER Wonder Sistemas <wonder@wonder.com.br> | |
RUN apt-get update -qq && apt-get install -y build-essential | |
RUN apt-get install -y nodejs | |
RUN apt-get install -y libgmp3-dev | |
# Gems | |
RUN gem install bundler | |
RUN mkdir -p /usr/src/probus/src | |
WORKDIR /usr/src/probus/src | |
COPY Gemfile /usr/src/probus/src/ | |
COPY Gemfile.lock /usr/src/probus/src/ | |
RUN bundle install -V | |
# Src | |
COPY . /usr/src/probus/src | |
# Run | |
ENV SECRET_KEY_BASE=3cc81dcb18bf1549ca722cd67cbdcf3cc8b0599aa85f851bd20bce757f89073af0874df2253eb1af5684322a2fa29e8d67f5958a5c0484e04d79e9e873437e0c8f21fe6a180f4bcdf4fd455e76e249b9776e6413f10408a2250d1312b5fc956f7ac4816bfc808c51a6d09380467707db31ca7c86cd8df0bea430408fe98adf15 | |
ENV RAILS_SERVE_STATIC_FILES=1 | |
EXPOSE 3000 | |
RUN rake assets:precompile | |
CMD rails server -e production -b 0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment