From 60ee39f1c25b1008ee22afa241dda77f37c64ded Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Fri, 20 Dec 2019 01:04:05 +0000 Subject: [PATCH] Invoke bundler --- Dockerfile | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58791dc..d30df73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ RUN gem install bundler RUN bundle config set without "development test" RUN bundle install --jobs=8 ADD . /app -CMD ["unicorn", "-c", "./config/unicorn.rb"] +CMD ["bundle", "exec", "unicorn", "-c", "./config/unicorn.rb"] diff --git a/docker-compose.yml b/docker-compose.yml index 2ff5f77..086b4a9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: volumes: - data:/var/lib/postgresql/data web: - command: unicorn -c config/unicorn.rb + command: bundle exec unicorn -c config/unicorn.rb entrypoint: bin/wait-for-it.sh db:5432 -s -- environment: DATABASE_URL: postgres://postgres@db/postgres