add dockerfile and gitea workflow

This commit is contained in:
2025-10-24 10:51:10 +02:00
parent 2eda108577
commit 5ee2156288
2 changed files with 63 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM python:3.13-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libssl-dev && \
rm -rf /var/lib/apt/lists/*
# Install app
COPY . /app
WORKDIR /app
# Install dependencies
RUN pip install --upgrade pip && \
pip install --root-user-action=ignore -r requirements.txt
EXPOSE 8000
# Starten Sie Ihre Anwendung
CMD ["hypercorn", "run:app", "--bind", "0.0.0.0:8000", "--workers", "1", "--websocket-ping-interval", "20", "--access-logfile", "-"]