Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the official Python image from the Docker Hub
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Install Jupyter Notebook
|
8 |
+
RUN pip install notebook
|
9 |
+
|
10 |
+
# Copy your .ipynb file into the Docker container
|
11 |
+
COPY your_notebook_file.ipynb /app/your_notebook_file.ipynb
|
12 |
+
|
13 |
+
# Expose the port that Jupyter Notebook will run on
|
14 |
+
EXPOSE 8888
|
15 |
+
|
16 |
+
# Run Jupyter Notebook
|
17 |
+
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]
|