Removed proxying from pip in Dockerfile, added K8S files

This commit is contained in:
2025-09-22 14:17:02 +02:00
parent 059a07b7ab
commit d1dba83e30
8 changed files with 156 additions and 2 deletions

View File

@@ -3,9 +3,9 @@ RUN mkdir /app
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --proxy http://proxy-bvcol.admin.ch:8080 --upgrade pip
RUN pip install --upgrade pip
COPY requirements.txt /app/
RUN pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --proxy http://proxy-bvcol.admin.ch:8080 --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
FROM python:3.13-slim
RUN useradd -m -r appuser && \