Switch invoke to dev image

This commit is contained in:
Daniel Schädler 2026-04-12 09:43:57 +02:00
parent 012523ce6c
commit 0cf635d1ec
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
ARG base_commit
FROM registry.gitlab.com/turniere/turniere-backend/production/commits:$base_commit
WORKDIR /app
RUN apt-get update -qq && apt-get install -y python3 python3-pip && apt-get clean && python3 -m pip install --no-cache-dir invoke
RUN bundle config set with 'development' && bundle install
ENV RAILS_ENV development
CMD bundle exec rails db:migrate && bundle exec rails s -p 3000 -b 0.0.0.0

View File

@ -1,7 +1,7 @@
ARG base_commit
FROM ruby:3.1.2-slim
# RUN apk add --no-cache build-base tzdata sqlite sqlite-dev postgresql-dev git && gem install tzinfo-data
RUN apt-get update -qq && apt-get install -y openssl git build-essential libpq-dev nodejs python3 python3-pip && apt-get clean && gem install tzinfo-data && python3 -m pip install --no-cache-dir invoke
RUN apt-get update -qq && apt-get install -y openssl git build-essential libpq-dev nodejs && apt-get clean && gem install tzinfo-data
WORKDIR /app
COPY Gemfile* /app/
RUN gem install bundler:2.3.13 && bundle config set deployment 'true' && bundle install