RoyAalekh commited on
Commit
d744329
·
1 Parent(s): 930bd43

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -4
Dockerfile CHANGED
@@ -1,9 +1,9 @@
1
  # syntax=docker/dockerfile:1
2
  FROM python:3.11-slim
3
 
4
- # Runtime system dependency for scikit-learn/scipy wheels
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 and install package (declared in pyproject.toml)
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
- # Streamlit default port
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"]