saeedzou commited on
Commit
2a85dfd
·
verified ·
1 Parent(s): ce6799e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -4,10 +4,6 @@ FROM python:3.9-slim
4
  # Set working directory in the container
5
  WORKDIR /app
6
 
7
- # Set up env for nltk data
8
- ENV NLTK_DATA=/app/nltk_data
9
- RUN mkdir -p /app/nltk_data
10
-
11
  # Install system dependencies
12
  RUN apt-get update && apt-get install -y \
13
  espeak-ng \
@@ -21,6 +17,12 @@ RUN git clone https://github.com/saeedzou/ParsNorm.git \
21
  && pip install -r requirements.txt \
22
  && pip install fastapi uvicorn
23
 
 
 
 
 
 
 
24
  COPY pos_tagger.model .
25
 
26
  # Copy your Python script into the container
 
4
  # Set working directory in the container
5
  WORKDIR /app
6
 
 
 
 
 
7
  # Install system dependencies
8
  RUN apt-get update && apt-get install -y \
9
  espeak-ng \
 
17
  && pip install -r requirements.txt \
18
  && pip install fastapi uvicorn
19
 
20
+ # Create a writable directory for nltk_data
21
+ RUN mkdir -p /app/nltk_data
22
+
23
+ # Set the NLTK_DATA environment variable
24
+ ENV NLTK_DATA=/app/nltk_data
25
+
26
  COPY pos_tagger.model .
27
 
28
  # Copy your Python script into the container