Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -24,9 +24,13 @@ RUN mkdir -p /app/ipython && chmod -R 777 /app/ipython
|
|
| 24 |
# Create an output folder and give it all permissions
|
| 25 |
RUN mkdir -p /app/output && chmod -R 2777 /app/output
|
| 26 |
|
|
|
|
| 27 |
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 28 |
|
| 29 |
-
#
|
|
|
|
|
|
|
|
|
|
| 30 |
RUN uv pip install --no-cache-dir -r requirements.txt
|
| 31 |
|
| 32 |
# Create a non-root user
|
|
|
|
| 24 |
# Create an output folder and give it all permissions
|
| 25 |
RUN mkdir -p /app/output && chmod -R 2777 /app/output
|
| 26 |
|
| 27 |
+
# Install uv
|
| 28 |
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 29 |
|
| 30 |
+
# Add uv to PATH
|
| 31 |
+
ENV PATH="/root/.cargo/bin:${PATH}"
|
| 32 |
+
|
| 33 |
+
# Use uv instead of pip for installing packages
|
| 34 |
RUN uv pip install --no-cache-dir -r requirements.txt
|
| 35 |
|
| 36 |
# Create a non-root user
|