fix: switch to image that can install pip
This commit is contained in:
parent
9e710ff8d0
commit
40fb6bf43a
12
Dockerfile
12
Dockerfile
@ -1,12 +1,10 @@
|
|||||||
# Container image that runs your code
|
FROM gitea/runner-images:ubuntu-latest
|
||||||
FROM alpine:3.21
|
|
||||||
|
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
||||||
|
|
||||||
# Install python/pip
|
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
RUN apk add --update --no-cache python3 && \
|
RUN python3 -m pip install --no-cache --upgrade pip && \
|
||||||
ln -sf python3 /usr/bin/python && \
|
python3 -m pip install --no-cache conventional-pre-commit==4.0.0
|
||||||
python3 -m ensurepip && \
|
|
||||||
pip3 install --no-cache --upgrade pip setuptools conventional-pre-commit
|
|
||||||
|
|
||||||
# Copies your code file from your action repository to the filesystem path `/` of the container
|
# Copies your code file from your action repository to the filesystem path `/` of the container
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user