aboutsummaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorJán Jančár2025-11-22 13:52:24 +0100
committerGitHub2025-11-22 13:52:24 +0100
commit8436df07381295b05a0cc892cca27e475629ee80 (patch)
tree9b940ee0a8851baaff67567c4004cd3c2cc027fd /Dockerfile
parent7cfa1c9fc498013d1a4807e5a11f55f39e6595aa (diff)
parent21aa562cdd1c21cc66e0b19b52b414af2782377e (diff)
downloadsec-certs-main.tar.gz
sec-certs-main.tar.zst
sec-certs-main.zip
Merge pull request #530 from crocs-muni/fix/try-spacyHEADmain
Move to uv
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index e0040227..7b9f982f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -52,14 +52,14 @@ COPY --chown=${NB_UID}:${NB_GID} --from=intermediate /output ${HOME}/sec-certs
ENV VENV_PATH=${HOME}/venv
RUN python3 -m venv ${VENV_PATH}
ENV PATH="${VENV_PATH}/bin:$PATH"
+ENV UV_PROJECT_ENVIRONMENT=${VENV_PATH}
# Install dependencies, notebook is because of mybinder.org
RUN \
- pip3 install -U pip wheel pip-tools && \
- pip-sync requirements/requirements.txt && \
- pip3 install --no-cache notebook jupyterlab && \
- pip3 install -e . && \
- python -m spacy download en_core_web_sm
+ pip install -U pip wheel uv && \
+ uv sync && \
+ pip install --no-cache notebook jupyterlab && \
+ uv run spacy download en_core_web_sm
# just to be sure that pdftotext is in $PATH
ENV PATH /usr/bin/pdftotext:${PATH}