Upload dockerfile
Browse files- dockerfile +4 -1
dockerfile
CHANGED
|
@@ -15,9 +15,12 @@ COPY requirements.txt .
|
|
| 15 |
# Install Python dependencies
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
-
# Download
|
| 19 |
RUN python -m spacy download en_core_web_sm
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
# Copy the rest of the application code into the container
|
| 22 |
COPY . .
|
| 23 |
|
|
|
|
| 15 |
# Install Python dependencies
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
+
# Download the Spacy model and link it
|
| 19 |
RUN python -m spacy download en_core_web_sm
|
| 20 |
|
| 21 |
+
# Verify the Spacy model is correctly installed
|
| 22 |
+
RUN python -c "import spacy; spacy.load('en_core_web_sm')"
|
| 23 |
+
|
| 24 |
# Copy the rest of the application code into the container
|
| 25 |
COPY . .
|
| 26 |
|