-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 770 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 770 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
ARG PYTHON_VERSION=3.12.12
FROM python:${PYTHON_VERSION}-bookworm
WORKDIR /starplot
COPY . .
ENV UV_PROJECT_ENVIRONMENT=/usr/local
ENV STARPLOT_DATA_PATH=/starplot/data
ENV PYTHONPATH=/starplot/src/
# 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 sync --all-groups --all-extras
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"]