RoyAalekh commited on
Commit
c86cb34
·
1 Parent(s): a092586

Refactor uv installation in Dockerfile

Browse files

Updated the installation method for uv and adjusted its location for accessibility.

Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -19,15 +19,16 @@ RUN pip install --upgrade pip setuptools wheel \
19
  && pip install .
20
 
21
  # Install uv
22
- RUN curl -L "https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-unknown-linux-gnu.tar.gz" \
23
- -o uv.tar.gz \
24
- && tar -xzf uv.tar.gz \
25
- && mv uv /usr/local/bin/uv \
26
- && rm uv.tar.gz
27
 
28
- # Test uv works
 
 
 
 
29
  RUN uv --version
30
 
 
31
  EXPOSE 8501
32
 
33
  CMD ["uv", "run", "scheduler/dashboard/app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]
 
19
  && pip install .
20
 
21
  # Install uv
22
+ RUN curl -LsSf https://astral.sh/uv/install.sh | sh
 
 
 
 
23
 
24
+ # Move uv from /root/.local/bin to /usr/local/bin
25
+ # so Render's non-root user can access it
26
+ RUN cp /root/.local/bin/uv /usr/local/bin/uv
27
+
28
+ # Verify
29
  RUN uv --version
30
 
31
+ # Streamlit default
32
  EXPOSE 8501
33
 
34
  CMD ["uv", "run", "scheduler/dashboard/app.py", "--server.port", "8501", "--server.address", "0.0.0.0"]