mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 18:39:46 +00:00
19 lines
527 B
Docker
19 lines
527 B
Docker
FROM astral/uv:python3.13-bookworm-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# HACK: Force app to dump logs into the docker console immediately
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
COPY pyproject.toml uv.lock ./
|
|
RUN uv sync --frozen --no-dev
|
|
|
|
COPY . .
|
|
|
|
# Make the temp log dir writable since server is running rootless
|
|
RUN mkdir -p /app/logs && chmod -R 777 /app/logs
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["sh", "-c", "uv run manage.py migrate && uv run gunicorn --bind 0.0.0.0:8000 --access-logfile - --error-logfile - --capture-output --log-level debug config.wsgi:application"]
|