Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
# Production Dockerfile for Public Speaking Coach API
|
| 2 |
# Optimized for Hugging Face Spaces or any cloud deployment
|
| 3 |
-
|
| 4 |
FROM python:3.10-slim
|
| 5 |
|
| 6 |
# Set environment variables
|
|
@@ -25,11 +24,8 @@ COPY requirements.txt .
|
|
| 25 |
# Install Python dependencies
|
| 26 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
-
# Download language tool data (for grammar checking)
|
| 29 |
-
RUN python -c "import language_tool_python; language_tool_python.LanguageTool('en-US')" || true
|
| 30 |
-
|
| 31 |
# Copy application code
|
| 32 |
-
COPY
|
| 33 |
COPY main.py .
|
| 34 |
|
| 35 |
# Create directory for temporary files
|
|
@@ -44,4 +40,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
|
| 44 |
|
| 45 |
# Run the application
|
| 46 |
# Use port 7860 for Hugging Face Spaces compatibility
|
| 47 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
# Production Dockerfile for Public Speaking Coach API
|
| 2 |
# Optimized for Hugging Face Spaces or any cloud deployment
|
|
|
|
| 3 |
FROM python:3.10-slim
|
| 4 |
|
| 5 |
# Set environment variables
|
|
|
|
| 24 |
# Install Python dependencies
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
# Copy application code
|
| 28 |
+
COPY enhanced_speech_coach.py .
|
| 29 |
COPY main.py .
|
| 30 |
|
| 31 |
# Create directory for temporary files
|
|
|
|
| 40 |
|
| 41 |
# Run the application
|
| 42 |
# Use port 7860 for Hugging Face Spaces compatibility
|
| 43 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|