feat(docker): add Dockerfile and docker-compose.yml for containerized deployment
This commit is contained in:
1 parent
b5025b3966
commit
83f19168db
3 files changed
+49
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy application source
|
||||
COPY . .
|
||||
|
||||
# Ensure data directory exists for SQLite WAL storage
|
||||
RUN mkdir -p /app/data
|
||||
|
||||
ENV HOST=0.0.0.0 \
|
||||
PORT=8002 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
EXPOSE 8002
|
||||
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8002"]
|
||||
Reference in new issue
Block a user