diff --git a/Dockerfile b/Dockerfile index 87c75272..e067d23a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,10 @@ 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 @@ -13,11 +17,7 @@ RUN install -m644 /tmp/fonts/*.ttf /usr/share/fonts/truetype/ RUN fc-cache -f RUN pip install uv -RUN uv pip install --system -r pyproject.toml -RUN uv pip install --system -r requirements-dev.txt - -ENV STARPLOT_DATA_PATH=/starplot/data -ENV PYTHONPATH=/starplot/src/ +RUN uv sync --all-groups --all-extras RUN git config --global --add safe.directory /starplot diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index e6793d60..00000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,21 +0,0 @@ -pytest==7.3.2 -pytest-cov==4.1.0 -black==23.3.0 -flit==3.9.0 -mypy==1.3.0 -imagehash==4.3.1 -mkdocstrings==1.0.0 -mkdocs-material==9.7.1 -mkdocstrings-python==2.0.1 -mkdocs-macros-plugin==1.3.7 -mkdocs-glightbox==0.4.0 -griffe==1.15.0 -ruff==0.14.10 -ipython==7.12.0 -pygments==2.19.2 -rich==13.9.4 -snakeviz==2.2.2 -marimo==0.15.2 - -# to fix hot reloading mkdocs -click==8.2.1