Created
October 30, 2017 19:48
-
-
Save ismasan/c914a4ad2c7c119509ae8e2d57748898 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.3.1 | |
| MAINTAINER Ismael Celis "[email protected]" | |
| RUN apt-get update -qq && apt-get install -y build-essential libpq-dev apt-transport-https apt-utils | |
| RUN apt-get install -y mysql-client | |
| # for nokogiri | |
| RUN apt-get install -y libxml2-dev libxslt1-dev | |
| # for a JS runtime | |
| RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - | |
| RUN apt-get install -y nodejs | |
| ENV DB_HOST docker.for.mac.localhost | |
| ENV RACK_ENV development | |
| ENV APP_DIR /app | |
| RUN mkdir $APP_DIR | |
| WORKDIR $APP_DIR | |
| COPY Gemfile Gemfile | |
| COPY Gemfile.lock Gemfile.lock | |
| RUN bundle install | |
| COPY . . | |
| EXPOSE 9292 | |
| # Configure an entry point, so we don't need to specify | |
| # "bundle exec" for each of our commands. | |
| ENTRYPOINT ["bundle", "exec"] | |
| CMD ["puma", "-p", "9292"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment