Spaces:
Sleeping
Sleeping
ming
commited on
Commit
·
2ff86e9
1
Parent(s):
55d10ea
Add Outlines installation verification to Dockerfile
Browse files- Verify Outlines installs correctly during Docker build
- Print version if successful, fail build if installation fails
- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -29,7 +29,9 @@ COPY requirements.txt .
|
|
| 29 |
|
| 30 |
# Install Python dependencies
|
| 31 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 32 |
-
pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
| 33 |
|
| 34 |
# Copy application code
|
| 35 |
COPY app/ ./app/
|
|
|
|
| 29 |
|
| 30 |
# Install Python dependencies
|
| 31 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 32 |
+
pip install --no-cache-dir -r requirements.txt && \
|
| 33 |
+
python -c "import outlines; print(f'✅ Outlines installed: {outlines.__version__ if hasattr(outlines, \"__version__\") else \"version unknown\"}')" || \
|
| 34 |
+
(echo "❌ Outlines installation failed!" && pip list | grep -i outline && exit 1)
|
| 35 |
|
| 36 |
# Copy application code
|
| 37 |
COPY app/ ./app/
|