mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 04:22:28 +01:00
17 lines
384 B
Docker
17 lines
384 B
Docker
|
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
|