Skip to content

Commit

Permalink
Fix mimemagic dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasgarciaisaia committed Oct 14, 2022
1 parent 3d4d779 commit fd9f94d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ gem 'sidekiq'
gem 'sidekiq-scheduler'
gem 'spreadsheet'

gem 'mimemagic', '~> 0.3.10'

group :development, :test do
gem 'dotenv-rails'

Expand Down
5 changes: 4 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fd9f94d

Please sign in to comment.