Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +14 -4
Dockerfile
CHANGED
|
@@ -8,13 +8,23 @@ RUN apt-get update && apt-get install -y \
|
|
| 8 |
git \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
EXPOSE 8501
|
| 17 |
|
| 18 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 19 |
|
| 20 |
-
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
| 8 |
git \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
+
# Install uv (from Astral's official installation script)
|
| 12 |
+
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 13 |
|
| 14 |
+
# Add uv to PATH (uv installs under ~/.local/bin by default)
|
| 15 |
+
ENV PATH="/root/.local/bin:${PATH}"
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
COPY . .
|
| 20 |
+
|
| 21 |
+
WORKDIR /app/src
|
| 22 |
+
|
| 23 |
+
# Install dependencies with uv
|
| 24 |
+
RUN uv pip install .
|
| 25 |
|
| 26 |
EXPOSE 8501
|
| 27 |
|
| 28 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 29 |
|
| 30 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|