From 40fb6bf43a862ec8331fac37daf6edf1e3649cb8 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Thu, 2 Jan 2025 22:42:15 +0000 Subject: [PATCH] fix: switch to image that can install pip --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index e49260d..fe04290 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,10 @@ -# Container image that runs your code -FROM alpine:3.21 +FROM gitea/runner-images:ubuntu-latest + +LABEL maintainer="Luke Tainton " -# Install python/pip ENV PYTHONUNBUFFERED=1 -RUN apk add --update --no-cache python3 && \ - ln -sf python3 /usr/bin/python && \ - python3 -m ensurepip && \ - pip3 install --no-cache --upgrade pip setuptools conventional-pre-commit +RUN python3 -m pip install --no-cache --upgrade pip && \ + python3 -m pip install --no-cache conventional-pre-commit==4.0.0 # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh