Skip to content

Commit

Permalink
chore: add mysql2 gem to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 6, 2019
1 parent 35bdbb9 commit 0e3dcc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM ruby:2.5.3-alpine

ENV INSTALL_MYSQL=true
RUN apk update \
&& apk --no-cache add \
"build-base>=0.5" \
Expand All @@ -10,6 +11,7 @@ RUN apk update \
"sqlite-dev>=3.28" \
"sqlite>=3.28" \
"tzdata>=2019" \
"mariadb-dev>=10.3" \
&& rm -rf /var/cache/apk/*

WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ gemspec
gem 'simplecov', :require => false, :group => :test

if ENV['INSTALL_MYSQL'] == "true"
gem 'mysql2', '~>0.3.15'
gem 'mysql2', '~>0.5'
end

0 comments on commit 0e3dcc0

Please sign in to comment.