forked from steveberardi/starplot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 756 Bytes
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 756 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
ARG PYTHON_VERSION=3.12.12
FROM python:${PYTHON_VERSION}-bookworm
WORKDIR /starplot
COPY . .
# Install Chinese font
# Noto Sans SC -> https://fonts.google.com/noto/specimen/Noto+Sans+SC
RUN mkdir -p /usr/share/fonts/truetype
RUN wget https://github.com/google/fonts/raw/refs/heads/main/ofl/notosanssc/NotoSansSC%5Bwght%5D.ttf -P /tmp/fonts
RUN install -m644 /tmp/fonts/*.ttf /usr/share/fonts/truetype/
RUN fc-cache -f
RUN pip install uv
RUN uv pip install --system -r requirements.txt
RUN uv pip install --system -r requirements-dev.txt
ENV PYTHONPATH=/starplot/src/
RUN git config --global --add safe.directory /starplot
# Build database
RUN python data/scripts/db.py
CMD ["bash", "-c", "python -m pytest . && python hash_checks/hashio.py check"]