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