Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use a base Python image
|
| 2 |
+
FROM python:3.9
|
| 3 |
+
|
| 4 |
+
# Set the working directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Copy requirements and install them
|
| 8 |
+
COPY requirements.txt .
|
| 9 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
+
|
| 11 |
+
# Copy your notebook into the app directory
|
| 12 |
+
COPY Curve_Optimisation_GUI.ipynb .
|
| 13 |
+
|
| 14 |
+
# Expose the port Voila will run on
|
| 15 |
+
EXPOSE 8866
|
| 16 |
+
|
| 17 |
+
# Command to run Voila when the container starts
|
| 18 |
+
CMD ["voila", "Curve_Optimisation_GUI.ipynb", "--no-browser", "--port=8866", "--server_url=0.0.0.0"]
|