From 4aec1e25236609345d1cf03289247431cbb1c03b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=90=E7=B2=92=20Yanli?= Date: Tue, 25 Jun 2024 17:38:19 +0800 Subject: [PATCH] Update dockerfile --- dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index 7ce85937..ab802d85 100644 --- a/dockerfile +++ b/dockerfile @@ -8,9 +8,10 @@ RUN apt-get update -qq && apt-get install -qqy --no-install-recommends \ && rm -rf /var/lib/apt/lists/* WORKDIR /app_build COPY src/ pdm.lock pyproject.toml README.md /app_build/ +RUN pip install pdm RUN pdm use $(which python) RUN pdm sync -RUN pip install pytorch-lightning==2.0.3 nltk>=3.8.1 pdm +RUN pip install pytorch-lightning==2.0.3 nltk>=3.8.1 RUN python -m nltk.downloader averaged_perceptron_tagger && \ python -m nltk.downloader cmudict RUN pdm cache clear