Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +22 -8
Dockerfile
CHANGED
@@ -1,12 +1,26 @@
|
|
|
|
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
|
5 |
-
apt-get clean && rm -rf /var/lib/apt/lists/*
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
COPY setup_runtime.sh /setup_runtime.sh
|
10 |
-
RUN chmod +x /setup_runtime.sh
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# SPDX-License-IdentifierText: NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
2 |
FROM nvcr.io/nvidia/pytorch:24.10-py3
|
3 |
|
4 |
+
# Install system tools
|
5 |
+
RUN apt-get update && apt-get install -y git tree ffmpeg wget build-essential && rm -rf /var/lib/apt/lists/*
|
|
|
6 |
|
7 |
+
# Set working directory
|
8 |
+
WORKDIR /app
|
|
|
|
|
9 |
|
10 |
+
# Copy environment and app files
|
11 |
+
COPY ./cosmos-predict1.yaml /cosmos-predict1.yaml
|
12 |
+
COPY ./requirements.txt /requirements.txt
|
13 |
+
COPY ./setup.sh /setup.sh
|
14 |
+
COPY . /app
|
15 |
+
|
16 |
+
# Give permission to setup script
|
17 |
+
RUN chmod +x /setup.sh
|
18 |
+
|
19 |
+
# Run setup script as root
|
20 |
+
RUN /bin/bash /setup.sh
|
21 |
+
|
22 |
+
# Expose Gradio port
|
23 |
+
EXPOSE 7860
|
24 |
+
|
25 |
+
# Default command
|
26 |
+
CMD ["python", "app.py"]
|