Spaces:
Sleeping
Sleeping
Refactor uv installation in Dockerfile
Browse filesUpdated the installation method for uv and adjusted its location for accessibility.
- 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 -
|
| 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 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|