2025-03-03 02:15:38 -08:00
|
|
|
# Use an official Python base image
|
|
|
|
|
FROM python:3.11
|
|
|
|
|
|
|
|
|
|
# Set the working directory
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Install Jupyter
|
|
|
|
|
RUN pip install --no-cache-dir jupyter
|
|
|
|
|
|
|
|
|
|
# Copy the notebook file into the container
|
|
|
|
|
COPY notebook.ipynb /app/
|
|
|
|
|
|
|
|
|
|
# Expose port 8000
|
2025-04-25 09:21:18 -07:00
|
|
|
ENV PORT=3006
|
2025-03-03 02:15:38 -08:00
|
|
|
EXPOSE 8000
|
|
|
|
|
|
|
|
|
|
# Command to execute the notebook directly
|
|
|
|
|
CMD ["jupyter", "execute", "notebook.ipynb"]
|