feat(make): fixed uv installation and added figures as make target

This commit is contained in:
Sebastian Rust
2026-06-03 12:42:50 +02:00
parent d39d475e73
commit d0223096ca
4 changed files with 46 additions and 21 deletions
+8 -3
View File
@@ -7,6 +7,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
texlive-latex-base \
texlive-latex-recommended \
texlive-fonts-recommended \
texlive-pictures \
texlive-latex-extra \
lmodern \
&& rm -rf /var/lib/apt/lists/*
ENV RENV_CONFIG_REPOS_OVERRIDE=https://packagemanager.posit.co/cran/__linux__/jammy/latest \
@@ -16,12 +19,14 @@ COPY figures/renv.lock /tmp/figures/renv.lock
RUN R -e 'install.packages("renv"); setwd("/tmp/figures"); renv::restore(prompt = FALSE)' && rm -rf /tmp/figures
ADD https://astral.sh/uv/install.sh /uv-installer.sh
RUN sh /uv-installer.sh && rm /uv-installer.sh
RUN UV_INSTALL_DIR=/usr/local/bin sh /uv-installer.sh && rm /uv-installer.sh
ENV UV_PROJECT_ENVIRONMENT=/opt/venv \
PATH=/opt/venv/bin:/root/.local/bin:$PATH
UV_PYTHON_INSTALL_DIR=/opt/uv-python \
PATH=/opt/venv/bin:$PATH
COPY analysis/pyproject.toml analysis/uv.lock /tmp/analysis/
RUN cd /tmp/analysis && uv sync --frozen --no-install-project && rm -rf /tmp/analysis
RUN cd /tmp/analysis && uv sync --frozen --no-install-project && rm -rf /tmp/analysis \
&& chmod -R o+rX /opt/venv /opt/uv-python
WORKDIR /work/eval