Files
docker-files/gitea_runner_python/Dockerfile
T
2026-09-28 11:56:22 +08:00

27 lines
742 B
Docker

# Gitea Action Runner Python Image
# 基于 gitea_runner_base 添加 Python 开发环境
FROM timi/gitea_runner_base:latest
LABEL maintainer="www.imyeyu.com"
LABEL description="Gitea Action Runner with Python 3 and native build tools"
ENV PYTHONUNBUFFERED=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
# Alpine 的 Python 版本随基础镜像仓库更新;virtualenv 用于隔离项目依赖。
RUN apk add --no-cache \
python3 \
py3-pip \
py3-virtualenv \
python3-dev \
build-base \
cargo \
libffi-dev \
openssl-dev \
&& ln -sf /usr/bin/python3 /usr/local/bin/python \
&& ln -sf /usr/bin/pip3 /usr/local/bin/pip \
&& python --version \
&& python -m pip --version \
&& virtualenv --version