22 lines
393 B
Docker
22 lines
393 B
Docker
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"]
|