FROM ruby:3.0.3-bullseye WORKDIR /app RUN apt-get update && apt-get -y install lsb-release # RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \ sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \ apt-get update && apt-get -y install postgresql postgresql-client-12 RUN sh -c 'echo "local all all trust" > /etc/postgresql/14/main/pg_hba.conf' && \ service postgresql start && \ psql -U postgres -c 'CREATE DATABASE "niceql-test"' RUN gem install bundler COPY lib/rails_sql_prettifier/version.rb /app/lib/rails_sql_prettifier/version.rb COPY rails_sql_prettifier.gemspec /app/ COPY Gemfil* /app/ # RUN bundle install