From 919aeabf86d16d305aa430ac6930b9d734d2f90b Mon Sep 17 00:00:00 2001 From: Malaber Date: Sat, 11 Apr 2026 15:17:57 +0200 Subject: [PATCH] Fix python install --- .gitlab-ci.yml | 2 -- docker/production/Dockerfile | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cd41860..677601a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,7 +18,6 @@ rails spec: - when: always script: - cd /app - - python3 -m pip install invoke - inv db-migrate - inv test artifacts: @@ -37,7 +36,6 @@ rails e2e spec: - when: always script: - cd /app - - python3 -m pip install invoke - inv verify-http after_script: - 'test -f /tmp/turniere-e2e-server.log && tail -n 200 /tmp/turniere-e2e-server.log || true' diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index 42a6684..6840fc3 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -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 && apt-get clean && 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 WORKDIR /app COPY Gemfile* /app/ RUN gem install bundler:2.3.13 && bundle config set deployment 'true' && bundle install