Add Dockerfile using NVIDIA cosmos container
Browse files- 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"]
|