This commit is contained in:
parent
9c9b26d036
commit
735ad5dd9c
3 changed files with 13 additions and 8 deletions
|
@ -5,7 +5,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: container
|
runs-on: container
|
||||||
container:
|
container:
|
||||||
image: tiptop:5000/treetrail-backend-ci
|
image: tiptop:5000/python-ci
|
||||||
volumes:
|
volumes:
|
||||||
- "/root/.cache/uv:uv_cache"
|
- "/root/.cache/uv:uv_cache"
|
||||||
services:
|
services:
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
FROM debian:trixie-slim
|
# Build: podman build -t localhost/python-ci -f Containerfile.ci
|
||||||
|
FROM localhost/trixie_python
|
||||||
|
|
||||||
|
RUN apt-get -y --no-install-recommends install nodejs git python3-pytest && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/listsd/* && \
|
||||||
|
rm -rf /root/.cache
|
||||||
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get install --no-install-recommends -y python-is-python3 python3-pip python3-venv nodejs git podman buildah pipx && \
|
|
||||||
apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf /root/.cache && \
|
|
||||||
rm -rf /root/.cache && \
|
|
||||||
pip install --break-system-packages uv
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Build: podman build -t trixie_python -f Containerfile.trixie_python
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
|
|
||||||
RUN <<EOT
|
RUN <<EOT
|
||||||
|
@ -16,4 +18,6 @@ ENV UV_LINK_MODE=copy \
|
||||||
UV_COMPILE_BYTECODE=1 \
|
UV_COMPILE_BYTECODE=1 \
|
||||||
UV_PYTHON_DOWNLOADS=never \
|
UV_PYTHON_DOWNLOADS=never \
|
||||||
#UV_PYTHON=python3.12 \
|
#UV_PYTHON=python3.12 \
|
||||||
UV_PROJECT_ENVIRONMENT=/app
|
UV_PROJECT_ENVIRONMENT=/app \
|
||||||
|
PYTHONPATH=/app/lib/python3.12/site-packages \
|
||||||
|
PATH=/app/bin:$PATH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue