Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -13,8 +13,8 @@ COPY requirements.txt .
|
|
| 13 |
# Install Python dependencies
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
-
# Copy
|
| 17 |
-
COPY .
|
| 18 |
|
| 19 |
# Expose port 7860 (required by Hugging Face Spaces)
|
| 20 |
EXPOSE 7860
|
|
@@ -23,7 +23,7 @@ EXPOSE 7860
|
|
| 23 |
RUN echo '#!/bin/bash\n\
|
| 24 |
redis-server --daemonize yes\n\
|
| 25 |
sleep 2\n\
|
| 26 |
-
|
| 27 |
' > /start.sh && chmod +x /start.sh
|
| 28 |
|
| 29 |
# Run the startup script
|
|
|
|
| 13 |
# Install Python dependencies
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
+
# Copy only main.py (code will be downloaded from model repo)
|
| 17 |
+
COPY main.py .
|
| 18 |
|
| 19 |
# Expose port 7860 (required by Hugging Face Spaces)
|
| 20 |
EXPOSE 7860
|
|
|
|
| 23 |
RUN echo '#!/bin/bash\n\
|
| 24 |
redis-server --daemonize yes\n\
|
| 25 |
sleep 2\n\
|
| 26 |
+
python main.py\n\
|
| 27 |
' > /start.sh && chmod +x /start.sh
|
| 28 |
|
| 29 |
# Run the startup script
|