Király Zoltán commited on
Commit
24d60ae
·
1 Parent(s): ab8df61

Fix NLTK punkt download in Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,11 +1,8 @@
 
1
  FROM python:3.9
2
 
3
 
4
  RUN useradd -m -u 1000 user
5
-
6
-
7
- RUN python -m nltk.downloader -d /usr/share/nltk_data punkt
8
-
9
  USER user
10
  ENV PATH="/home/user/.local/bin:$PATH"
11
 
@@ -17,6 +14,9 @@ COPY --chown=user ./requirements.txt requirements.txt
17
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
18
 
19
 
 
 
 
20
  COPY --chown=user . .
21
 
22
 
 
1
+
2
  FROM python:3.9
3
 
4
 
5
  RUN useradd -m -u 1000 user
 
 
 
 
6
  USER user
7
  ENV PATH="/home/user/.local/bin:$PATH"
8
 
 
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
 
17
+ RUN python -m nltk.downloader punkt
18
+
19
+
20
  COPY --chown=user . .
21
 
22