Spaces:
Build error
Build error
Upload Dockerfile
Browse files- Dockerfile +27 -0
Dockerfile
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use an NVIDIA CUDA base image with Python
|
| 2 |
+
FROM nvidia/cuda:12.2.0-devel-ubuntu22.04
|
| 3 |
+
|
| 4 |
+
# Set working directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install system dependencies
|
| 8 |
+
RUN apt-get update && apt-get install -y \
|
| 9 |
+
python3 \
|
| 10 |
+
python3-pip \
|
| 11 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
+
|
| 13 |
+
# Upgrade pip
|
| 14 |
+
RUN pip3 install --upgrade pip
|
| 15 |
+
|
| 16 |
+
# Copy requirements.txt and install Python dependencies
|
| 17 |
+
COPY requirements.txt .
|
| 18 |
+
RUN pip3 install -r requirements.txt
|
| 19 |
+
|
| 20 |
+
# Copy the application code
|
| 21 |
+
COPY gaussian.py .
|
| 22 |
+
|
| 23 |
+
# Expose the port used by Gradio (default is 7860)
|
| 24 |
+
EXPOSE 7860
|
| 25 |
+
|
| 26 |
+
# Command to run the application
|
| 27 |
+
CMD ["python3", "gaussian.py"]
|