Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +2 -13
Dockerfile
CHANGED
@@ -1,23 +1,12 @@
|
|
1 |
-
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
2 |
-
# SPDX-License-Identifier: Apache-2.0
|
3 |
-
|
4 |
FROM nvcr.io/nvidia/pytorch:24.10-py3
|
5 |
|
6 |
-
# Install
|
7 |
-
RUN apt-get update && apt-get install -y git
|
8 |
apt-get clean && rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
-
# Fix shell and CUDA link (optional for some systems)
|
11 |
-
RUN rm /bin/sh && ln -s /bin/bash /bin/sh && ln -s /lib64/libcuda.so.1 /lib64/libcuda.so || true
|
12 |
-
# Copy files into image
|
13 |
-
COPY cosmos-predict1.yaml /cosmos-predict1.yaml
|
14 |
COPY requirements.txt /requirements.txt
|
15 |
COPY app.py /app/app.py
|
16 |
COPY setup_runtime.sh /setup_runtime.sh
|
17 |
RUN chmod +x /setup_runtime.sh
|
18 |
|
19 |
-
# Lightweight install to keep Hugging Face build stable
|
20 |
-
RUN pip install --no-cache-dir gradio
|
21 |
-
|
22 |
-
# Default command runs the heavy setup at runtime
|
23 |
CMD ["/bin/bash", "/setup_runtime.sh"]
|
|
|
|
|
|
|
|
|
1 |
FROM nvcr.io/nvidia/pytorch:24.10-py3
|
2 |
|
3 |
+
# Install tools
|
4 |
+
RUN apt-get update && apt-get install -y git ffmpeg wget build-essential ninja-build && \
|
5 |
apt-get clean && rm -rf /var/lib/apt/lists/*
|
6 |
|
|
|
|
|
|
|
|
|
7 |
COPY requirements.txt /requirements.txt
|
8 |
COPY app.py /app/app.py
|
9 |
COPY setup_runtime.sh /setup_runtime.sh
|
10 |
RUN chmod +x /setup_runtime.sh
|
11 |
|
|
|
|
|
|
|
|
|
12 |
CMD ["/bin/bash", "/setup_runtime.sh"]
|