Add postgresql support

This commit is contained in:
Hugo Peixoto 2023-08-01 17:20:10 +01:00
parent d1a4ea3d16
commit 8c85a64375
3 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
FROM ruby:alpine FROM ruby:alpine
RUN apk add make gcc libc-dev RUN apk add make gcc libc-dev libpq-dev
WORKDIR /app WORKDIR /app
ADD gems.rb gems.locked ./ ADD gems.rb gems.locked ./

View File

@ -18,6 +18,7 @@ GEM
mustermann (3.0.0) mustermann (3.0.0)
ruby2_keywords (~> 0.0.1) ruby2_keywords (~> 0.0.1)
nio4r (2.5.9) nio4r (2.5.9)
pg (1.5.3)
puma (6.3.0) puma (6.3.0)
nio4r (~> 2.0) nio4r (~> 2.0)
rack (2.2.7) rack (2.2.7)
@ -39,6 +40,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
activerecord activerecord
pg
puma puma
sinatra sinatra
sqlite3 sqlite3

View File

@ -7,3 +7,4 @@ gem 'activerecord'
gem 'puma' gem 'puma'
gem 'sinatra' gem 'sinatra'
gem 'sqlite3' gem 'sqlite3'
gem 'pg'