diff --git a/Dockerfile b/Dockerfile index e53f982..7d9e6cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ADD Gemfile.lock /app/ WORKDIR /app # Install required packages -RUN apk add --no-cache build-base nodejs git mysql-dev postgresql-dev tzdata +RUN apk add --no-cache build-base nodejs git mysql-dev postgresql-dev tzdata shared-mime-info # Upgrades bundler versions RUN gem install bundler diff --git a/Dockerfile-dev b/Dockerfile-dev index b70cded..faabed4 100644 --- a/Dockerfile-dev +++ b/Dockerfile-dev @@ -5,7 +5,7 @@ WORKDIR /app RUN \ apt-get update && \ curl -sL https://deb.nodesource.com/setup_6.x | bash - && \ - apt-get install -y nodejs build-essential libpq-dev && \ + apt-get install -y nodejs build-essential libpq-dev shared-mime-info && \ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN gem install bundler -v 2.0.1 diff --git a/Gemfile b/Gemfile index 1921779..798fb5a 100644 --- a/Gemfile +++ b/Gemfile @@ -26,6 +26,8 @@ gem 'sidekiq' gem 'sidekiq-scheduler' gem 'spreadsheet' +gem 'mimemagic', '~> 0.3.10' + group :development, :test do gem 'dotenv-rails' diff --git a/Gemfile.lock b/Gemfile.lock index 1c9c329..0fcf4ed 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -200,7 +200,9 @@ GEM marcel (0.3.3) mimemagic (~> 0.3.2) method_source (0.9.2) - mimemagic (0.3.3) + mimemagic (0.3.10) + nokogiri (~> 1) + rake mini_mime (1.0.2) mini_portile2 (2.4.0) minitest (5.14.1) @@ -392,6 +394,7 @@ DEPENDENCIES interactor-rails kaminari listen (>= 3.0.5, < 3.2) + mimemagic (~> 0.3.10) pg (>= 0.18, < 2.0) pry-rails puma (~> 3.12)