Files
scha/Dockerfile
T
westfarn 2081210b78
CI / test (pull_request) Successful in 4s
Unit Tests / test (pull_request) Successful in 3s
Dockerize scha and wire Gitea CI/CD for server-infra deploy.
Move secrets and DB config to env-driven settings so prod can run on shared Postgres behind deploy.sh, matching company_site.
2026-07-14 05:11:41 -05:00

29 lines
607 B
Docker

FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy \
UV_PROJECT_ENVIRONMENT=/app/.venv
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends libpq5 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev
COPY scha ./scha
COPY schasite ./schasite
COPY manage.py ./
COPY scripts/docker-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]