Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
|
@@ -19,16 +19,14 @@ COPY requirements.txt .
|
|
| 19 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 20 |
|
| 21 |
# Copy application code
|
| 22 |
-
|
| 23 |
-
COPY server.py .
|
| 24 |
|
| 25 |
# Health check
|
| 26 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
| 27 |
-
CMD curl -f http://localhost:
|
| 28 |
|
| 29 |
-
# Expose port
|
| 30 |
EXPOSE 7860
|
| 31 |
|
| 32 |
-
# Run the server
|
| 33 |
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 34 |
-
|
|
|
|
| 19 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 20 |
|
| 21 |
# Copy application code
|
| 22 |
+
COPY compress.py .
|
|
|
|
| 23 |
|
| 24 |
# Health check
|
| 25 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
| 26 |
+
CMD curl -f http://localhost:7860/ || exit 1
|
| 27 |
|
| 28 |
+
# Expose port 7860
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
+
# Run the compression server
|
| 32 |
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|