Testversion 1
This commit is contained in:
@@ -2,16 +2,12 @@ FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# uv installieren
|
||||
RUN pip install uv
|
||||
|
||||
# Nur dependency files zuerst kopieren (Docker Cache!)
|
||||
COPY pyproject.toml uv.lock ./
|
||||
|
||||
RUN uv sync --frozen --no-dev
|
||||
|
||||
# Rest kopieren
|
||||
COPY app.py .
|
||||
COPY . .
|
||||
|
||||
EXPOSE 5000
|
||||
CMD ["uv", "run", "app.py"]
|
||||
EXPOSE 8000
|
||||
CMD ["uv", "run", "gunicorn", "-b", "0.0.0.0:8000", "app:app"]
|
||||
|
||||
Reference in New Issue
Block a user