Spaces:
Paused
Paused
Peter Michael Gits Claude commited on
Commit ·
9a2dd7b
1
Parent(s): 5d0d0ac
fix: Re-add ultra-minimal Dockerfile to force HF cache refresh v0.3.13
Browse filesFresh Dockerfile with only curl installation to avoid apt-get timeout.
HF should now detect the new minimal configuration.
Test: Only curl + gradio + python-dotenv
Goal: Verify Docker infrastructure works on HF Spaces
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Dockerfile +38 -0
- version.py +1 -1
Dockerfile
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Ultra-minimal Dockerfile for HF Spaces
|
| 2 |
+
FROM python:3.11-slim
|
| 3 |
+
|
| 4 |
+
# Set working directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install only essential system packages (no build tools)
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 9 |
+
curl \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/* \
|
| 11 |
+
&& apt-get clean
|
| 12 |
+
|
| 13 |
+
# Create non-root user
|
| 14 |
+
RUN useradd -m -u 1000 user
|
| 15 |
+
|
| 16 |
+
# Switch to user
|
| 17 |
+
USER user
|
| 18 |
+
ENV HOME=/home/user \
|
| 19 |
+
PATH=/home/user/.local/bin:$PATH
|
| 20 |
+
|
| 21 |
+
WORKDIR $HOME/app
|
| 22 |
+
|
| 23 |
+
# Copy and install minimal requirements
|
| 24 |
+
COPY --chown=user requirements.txt .
|
| 25 |
+
RUN pip install --user --no-cache-dir -r requirements.txt
|
| 26 |
+
|
| 27 |
+
# Copy application code
|
| 28 |
+
COPY --chown=user . .
|
| 29 |
+
|
| 30 |
+
# Expose port
|
| 31 |
+
EXPOSE 7860
|
| 32 |
+
|
| 33 |
+
# Environment variables
|
| 34 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0" \
|
| 35 |
+
GRADIO_SERVER_PORT=7860
|
| 36 |
+
|
| 37 |
+
# Run the test application
|
| 38 |
+
CMD ["python", "simple_test.py"]
|
version.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
Version information for ChatCal Voice-Enabled AI Assistant
|
| 3 |
"""
|
| 4 |
|
| 5 |
-
__version__ = "0.3.
|
| 6 |
__build_date__ = "2025-08-18"
|
| 7 |
__description__ = "Voice-Enabled ChatCal AI Assistant with Hugging Face deployment"
|
| 8 |
|
|
|
|
| 2 |
Version information for ChatCal Voice-Enabled AI Assistant
|
| 3 |
"""
|
| 4 |
|
| 5 |
+
__version__ = "0.3.13"
|
| 6 |
__build_date__ = "2025-08-18"
|
| 7 |
__description__ = "Voice-Enabled ChatCal AI Assistant with Hugging Face deployment"
|
| 8 |
|