frankfurter/Dockerfile

17 lines
384 B
Docker
Raw Normal View History

2016-04-06 00:49:19 +02:00
FROM ruby:2.3.0
ENV WORKER_PROCESSES 4
ENV DATABASE_URL postgres://postgres:mysecretpassword@postgres/fixer
ENV VERSION 1
RUN mkdir /fixer-io
WORKDIR /fixer-io
ADD Gemfile /fixer-io/Gemfile
ADD Gemfile.lock /fixer-io/Gemfile.lock
RUN bundle install --deployment --without development:test
ADD . /fixer-io
EXPOSE 8080
CMD bundle exec unicorn -p 8080 -c /fixer-io/config/unicorn.rb