chore: add docker deployment files for coolify
This commit is contained in:
parent
869d8053f8
commit
05206f1c1f
2 changed files with 31 additions and 0 deletions
10
.dockerignore
Normal file
10
.dockerignore
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.mypy_cache
|
||||||
|
.venv
|
||||||
|
__pycache__
|
||||||
|
*.pyc
|
||||||
|
tmp
|
||||||
|
docs
|
||||||
|
scripts
|
||||||
|
sample.env
|
||||||
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
FROM python:3.12-slim
|
||||||
|
|
||||||
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||||
|
PYTHONUNBUFFERED=1 \
|
||||||
|
PIP_NO_CACHE_DIR=1 \
|
||||||
|
PYTHONPATH=/app/src \
|
||||||
|
SQL_OPT_TEAM_PORT=7777
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY requirements.txt ./
|
||||||
|
RUN pip install --upgrade pip && pip install -r requirements.txt
|
||||||
|
|
||||||
|
COPY src ./src
|
||||||
|
COPY kb ./kb
|
||||||
|
|
||||||
|
RUN mkdir -p /app/tmp
|
||||||
|
|
||||||
|
EXPOSE 7777
|
||||||
|
|
||||||
|
CMD ["python", "-m", "uvicorn", "sql_optimizer_team.team_app:app", "--host", "0.0.0.0", "--port", "7777"]
|
||||||
Loading…
Reference in a new issue