Spaces:
Runtime error
Runtime error
Upload Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
ENV PYTHONDONTWRITEBYTECODE 1
|
| 3 |
+
ENV PYTHONUNBUFFERED 1
|
| 4 |
+
ENV STREAMLIT_SERVER_HEADLESS=true
|
| 5 |
+
RUN apt-get update && apt-get install -y --no-install-recommends libgl1 && rm -rf /var/lib/apt/lists/*
|
| 6 |
+
WORKDIR /app
|
| 7 |
+
COPY requirements.txt .
|
| 8 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
+
COPY . .
|
| 10 |
+
EXPOSE 8501
|
| 11 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 12 |
+
ENTRYPOINT ["python", "-m", "streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|