Commit
·
bcfe687
1
Parent(s):
6f771aa
Updated docker file
Browse files- Dockerfile +1 -4
- requirements.txt +2 -1
Dockerfile
CHANGED
|
@@ -5,13 +5,10 @@ WORKDIR /app
|
|
| 5 |
# Copy requirements
|
| 6 |
COPY requirements.txt .
|
| 7 |
|
| 8 |
-
# Install dependencies
|
| 9 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 10 |
pip install --no-cache-dir -r requirements.txt
|
| 11 |
|
| 12 |
-
# Download spaCy model (use small model - it's sufficient)
|
| 13 |
-
RUN python -m spacy download en_core_web_sm
|
| 14 |
-
|
| 15 |
# Copy application
|
| 16 |
COPY . .
|
| 17 |
|
|
|
|
| 5 |
# Copy requirements
|
| 6 |
COPY requirements.txt .
|
| 7 |
|
| 8 |
+
# Install dependencies (now includes spaCy model)
|
| 9 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 10 |
pip install --no-cache-dir -r requirements.txt
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Copy application
|
| 13 |
COPY . .
|
| 14 |
|
requirements.txt
CHANGED
|
@@ -6,4 +6,5 @@ pydantic==2.5.0
|
|
| 6 |
python-multipart==0.0.6
|
| 7 |
presidio-analyzer==2.2.354
|
| 8 |
presidio-anonymizer==2.2.354
|
| 9 |
-
spacy==3.7.2
|
|
|
|
|
|
| 6 |
python-multipart==0.0.6
|
| 7 |
presidio-analyzer==2.2.354
|
| 8 |
presidio-anonymizer==2.2.354
|
| 9 |
+
spacy==3.7.2
|
| 10 |
+
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl
|