From 7f79795b25a5524222ed008e4929b59a9e727716 Mon Sep 17 00:00:00 2001 From: grosa1 Date: Sun, 16 Apr 2023 13:12:34 +0200 Subject: [PATCH] Fix for Dockerfile smell DL3025 Signed-off-by: grosa1 --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e5c3f8ff47..861d910634 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,8 @@ RUN bundle install EXPOSE 3000 -CMD rake jetty:clean && rake jetty:config && rake jetty:start && bundle exec rake db:migrate RAILS_ENV=development && bundle exec rails s -b 0.0.0.0 +CMD ["rake", "jetty:clean", "&&", \ + "rake", "jetty:config", "&&", \ + "rake", "jetty:start", "&&", \ + "bundle", "exec", "rake", "db:migrate", "RAILS_ENV=development", "&&", \ + "bundle", "exec", "rails", "s", "-b", "0.0.0.0"]