feat: add modal cloud builder

This commit is contained in:
BennyKok
2024-01-04 22:28:19 +08:00
parent d879889e1b
commit 314eb9fd16
17 changed files with 694 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM python:3.10
WORKDIR /app
COPY ./requirements.txt ./
RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
COPY ./src ./src
RUN mkdir builds
# CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "80", "--lifespan", "on"]
CMD ["python", "src/main.py"]
# If running behind a proxy like Nginx or Traefik add --proxy-headers
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80", "--proxy-headers"]