Dockerfiles

This commit is contained in:
2026-02-22 20:23:05 +01:00 Verified
parent f1d145d73c
commit 1469b87ddb
7 changed files with 322 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.14-alpine
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PORT=8080
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdir -p /app/data
EXPOSE $PORT
CMD ["sh", "-c", "gunicorn -w 4 -k uvicorn.workers.UvicornWorker main:app --bind 0.0.0.0:$PORT"]