Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
# syntax=docker/dockerfile:1
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
-
#
|
| 5 |
RUN apt-get update \
|
| 6 |
-
&& apt-get install -y --no-install-recommends libgomp1 \
|
| 7 |
&& rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
# Python env hygiene
|
|
@@ -15,14 +15,19 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
| 15 |
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
-
# Copy repo
|
| 19 |
COPY . .
|
| 20 |
|
|
|
|
| 21 |
RUN pip install --upgrade pip setuptools wheel \
|
| 22 |
&& pip install .
|
|
|
|
|
|
|
| 23 |
RUN curl -fsSL https://astral.sh/uv/install.sh | sh
|
|
|
|
|
|
|
| 24 |
ENV PATH="/root/.local/bin:/root/.cargo/bin:${PATH}"
|
| 25 |
-
|
| 26 |
EXPOSE 8501
|
| 27 |
|
| 28 |
CMD ["uv", "run", "scheduler/dashboard/app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]
|
|
|
|
| 1 |
# syntax=docker/dockerfile:1
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
+
# Install system deps (including curl for uv installer)
|
| 5 |
RUN apt-get update \
|
| 6 |
+
&& apt-get install -y --no-install-recommends libgomp1 curl \
|
| 7 |
&& rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
# Python env hygiene
|
|
|
|
| 15 |
|
| 16 |
WORKDIR /app
|
| 17 |
|
| 18 |
+
# Copy repo
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
+
# Install Python package
|
| 22 |
RUN pip install --upgrade pip setuptools wheel \
|
| 23 |
&& pip install .
|
| 24 |
+
|
| 25 |
+
# Install uv
|
| 26 |
RUN curl -fsSL https://astral.sh/uv/install.sh | sh
|
| 27 |
+
|
| 28 |
+
# Add uv to PATH so CMD can find it
|
| 29 |
ENV PATH="/root/.local/bin:/root/.cargo/bin:${PATH}"
|
| 30 |
+
|
| 31 |
EXPOSE 8501
|
| 32 |
|
| 33 |
CMD ["uv", "run", "scheduler/dashboard/app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]
|