Spaces:
Sleeping
Sleeping
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +13 -12
Dockerfile
CHANGED
|
@@ -1,12 +1,13 @@
|
|
| 1 |
-
FROM python:3.11-slim
|
| 2 |
-
ENV PIP_NO_INPUT=1 PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PORT=7860
|
| 3 |
-
RUN apt-get update && apt-get install -y --no-install-recommends build-essential && rm -rf /var/lib/apt/lists/*
|
| 4 |
-
WORKDIR /app
|
| 5 |
-
COPY requirements.txt /app/requirements.txt
|
| 6 |
-
RUN pip install --upgrade pip && pip install -r /app/requirements.txt
|
| 7 |
-
COPY
|
| 8 |
-
COPY .
|
| 9 |
-
COPY
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
CMD
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
ENV PIP_NO_INPUT=1 PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PORT=7860
|
| 3 |
+
RUN apt-get update && apt-get install -y --no-install-recommends build-essential git && rm -rf /var/lib/apt/lists/*
|
| 4 |
+
WORKDIR /app
|
| 5 |
+
COPY requirements.txt /app/requirements.txt
|
| 6 |
+
RUN pip install --upgrade pip && pip install -r /app/requirements.txt
|
| 7 |
+
COPY app_advanced.py /app/app_advanced.py
|
| 8 |
+
COPY app.py /app/app.py
|
| 9 |
+
COPY .streamlit/config.toml /app/.streamlit/config.toml
|
| 10 |
+
COPY README.md /app/README.md
|
| 11 |
+
EXPOSE 7860
|
| 12 |
+
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s CMD python -c "import socket; s=socket.socket(); s.settimeout(3); s.connect(('127.0.0.1', 7860)); s.close()" || exit 1
|
| 13 |
+
CMD ["streamlit", "run", "app_advanced.py", "--server.port=7860", "--server.address=0.0.0.0"]
|