diff --git a/Dockerfile b/Dockerfile index 892cfe91..37d6a277 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,8 +23,9 @@ RUN bundle install --deployment --without development test --jobs 4 # Copy application COPY . . -# Create required directories -RUN mkdir -p tmp/pids tmp/puma tmp/cache tmp/sockets log storage public/uploads +# Create required directories and runtime files +RUN mkdir -p tmp/pids tmp/puma tmp/cache tmp/sockets log storage public/uploads \ + && echo '{"data":[]}' > config/shops.json # Precompile assets RUN RAILS_ENV=production SECRET_KEY_BASE=placeholder bundle exec rake assets:precompile 2>/dev/null || true