amitlals
commited on
Commit
Β·
1ae333a
1
Parent(s):
c8d1859
Switch to Docker SDK for Python 3.11 support
Browse files- Dockerfile +3 -3
- README.md +2 -2
Dockerfile
CHANGED
|
@@ -7,7 +7,7 @@ FROM python:3.11-slim
|
|
| 7 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 8 |
ENV PYTHONUNBUFFERED=1
|
| 9 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 10 |
-
ENV GRADIO_SERVER_PORT=
|
| 11 |
|
| 12 |
# Install system dependencies
|
| 13 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
@@ -38,11 +38,11 @@ COPY . .
|
|
| 38 |
RUN mkdir -p /app/data
|
| 39 |
|
| 40 |
# Expose port
|
| 41 |
-
EXPOSE
|
| 42 |
|
| 43 |
# Health check
|
| 44 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \
|
| 45 |
-
CMD curl -f http://localhost:
|
| 46 |
|
| 47 |
# Run the application
|
| 48 |
CMD ["python", "app_gradio.py"]
|
|
|
|
| 7 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 8 |
ENV PYTHONUNBUFFERED=1
|
| 9 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 10 |
+
ENV GRADIO_SERVER_PORT=7860
|
| 11 |
|
| 12 |
# Install system dependencies
|
| 13 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
| 38 |
RUN mkdir -p /app/data
|
| 39 |
|
| 40 |
# Expose port
|
| 41 |
+
EXPOSE 7860
|
| 42 |
|
| 43 |
# Health check
|
| 44 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \
|
| 45 |
+
CMD curl -f http://localhost:7860/ || exit 1
|
| 46 |
|
| 47 |
# Run the application
|
| 48 |
CMD ["python", "app_gradio.py"]
|
README.md
CHANGED
|
@@ -3,8 +3,8 @@ title: SAP Finance Dashboard with RPT-1-OSS
|
|
| 3 |
emoji: π
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: blue
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
app_file: app_gradio.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
|
|
|
| 3 |
emoji: π
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: blue
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
app_file: app_gradio.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|