feat: add modal cloud builder

This commit is contained in:
BennyKok committed 2024-01-04 22:28:19 +08:00
1 parent d879889e1b
commit 314eb9fd16
17 files changed
+694

No files matched your search

+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"]