samwell commited on
Commit
01565f9
·
verified ·
1 Parent(s): ae23857

Add Dockerfile using NVIDIA cosmos container

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvcr.io/nvidia/cosmos/cosmos-predict2-container:1.2
2
+
3
+ WORKDIR /app
4
+
5
+ # Install additional dependencies for the API server
6
+ RUN pip install --no-cache-dir fastapi uvicorn python-multipart
7
+
8
+ # Copy handler
9
+ COPY handler.py /app/handler.py
10
+
11
+ # Expose port
12
+ EXPOSE 80
13
+
14
+ # Run the server
15
+ CMD ["uvicorn", "handler:app", "--host", "0.0.0.0", "--port", "80"]