forked from leanprover-community/queueboard-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 691 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# syntax=docker/dockerfile:1
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PYTHONPATH=/app
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml README.md uv.lock* ./
COPY src ./src
COPY qb_site ./qb_site
COPY scripts ./scripts
RUN pip install --upgrade pip && \
pip install --no-cache-dir -e .
RUN chmod +x scripts/docker-entrypoint.sh
CMD ["python", "qb_site/manage.py", "runserver", "0.0.0.0:8000"]
ENTRYPOINT ["scripts/docker-entrypoint.sh"]