Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -33,10 +33,12 @@ COPY requirements.txt .
|
|
| 33 |
|
| 34 |
# Update pip and install dependencies
|
| 35 |
RUN pip install --upgrade pip && \
|
| 36 |
-
pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 37 |
|
| 38 |
-
# Verify transformers
|
| 39 |
-
RUN python -c "from transformers import pipeline; print('Transformers pipeline imported successfully')"
|
|
|
|
| 40 |
|
| 41 |
# Copy the rest of the application
|
| 42 |
COPY . .
|
|
|
|
| 33 |
|
| 34 |
# Update pip and install dependencies
|
| 35 |
RUN pip install --upgrade pip && \
|
| 36 |
+
pip install --no-cache-dir -r requirements.txt && \
|
| 37 |
+
pip install tokenizers==0.19.1
|
| 38 |
|
| 39 |
+
# Verify transformers and tokenizers
|
| 40 |
+
RUN python -c "import transformers; from transformers import pipeline; print('Transformers pipeline imported successfully, version:', transformers.__version__)" && \
|
| 41 |
+
python -c "import tokenizers; print('Tokenizers imported successfully, version:', tokenizers.__version__)"
|
| 42 |
|
| 43 |
# Copy the rest of the application
|
| 44 |
COPY . .
|