10 lines
407 B
Docker
10 lines
407 B
Docker
FROM python:3.13-slim
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY app ./app
|
|
# SQLite data is mounted at /data; the container remains read-only except for that mount.
|
|
# It runs as root so a freshly-created local bind mount is writable without manual chown.
|
|
EXPOSE 8080
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080", "--proxy-headers"]
|