Use prebuilt Docker image for Gitea workflows
All checks were successful
Test blackout notifier / test (push) Successful in 4s
All checks were successful
Test blackout notifier / test (push) Successful in 4s
This commit is contained in:
26
runner-image/Dockerfile
Normal file
26
runner-image/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM node:20-bookworm
|
||||
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
git \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
tzdata && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.lock /tmp/requirements.lock
|
||||
|
||||
RUN python3 -m venv /opt/blackout-venv && \
|
||||
/opt/blackout-venv/bin/pip install --no-cache-dir -r /tmp/requirements.lock && \
|
||||
/opt/blackout-venv/bin/python -c "import dotenv, jdatetime, requests" && \
|
||||
/opt/blackout-venv/bin/pytest --version && \
|
||||
/opt/blackout-venv/bin/ruff --version && \
|
||||
rm /tmp/requirements.lock
|
||||
|
||||
ENV PATH="/opt/blackout-venv/bin:$PATH" \
|
||||
PYTHONDONTWRITEBYTECODE="1" \
|
||||
PYTHONUNBUFFERED="1"
|
||||
|
||||
CMD ["bash"]
|
||||
14
runner-image/requirements.lock
Normal file
14
runner-image/requirements.lock
Normal file
@@ -0,0 +1,14 @@
|
||||
certifi==2026.6.17
|
||||
charset-normalizer==3.4.9
|
||||
idna==3.18
|
||||
iniconfig==2.3.0
|
||||
jalali_core==1.0.0
|
||||
jdatetime==6.0.1
|
||||
packaging==26.2
|
||||
pluggy==1.6.0
|
||||
Pygments==2.20.0
|
||||
pytest==9.1.1
|
||||
python-dotenv==1.2.2
|
||||
requests==2.34.2
|
||||
ruff==0.15.22
|
||||
urllib3==2.7.0
|
||||
Reference in New Issue
Block a user