WIP: Update Dockerfile with requirements.txt that downgrade versions so that ebas converter can run. We need to rethink the Dockerfile container workflow using docker compose

This commit is contained in:
2025-03-18 08:55:52 +01:00
parent 862a2c46e6
commit 41506519d3
3 changed files with 25 additions and 2 deletions

View File

@ -6,3 +6,5 @@ logs/
*.pyc
__pycache__/
*.h5
.Trash-0/
.ipynb_checkpoints/

View File

@ -28,8 +28,19 @@ RUN mkdir -p /acsmdc/data /acsmdc/figures /acsmdc/pipelines/params
# Copy project files, excluding certain directories (handled via .dockerignore)
COPY . /acsmdc
# Copy and install dependencies from requirements.txt
COPY requirements.txt /acsmdc/requirements.txt
RUN conda run -n $ENV_NAME pip install -r /acsmdc/requirements.txt
# Define volumes for excluded directories
VOLUME ["/acsmdc/data", "/acsmdc/figures", "/acsmdc/pipelines/params"]
# Default command: Run Conda shell so Python and Conda are accessible
CMD ["/bin/bash"]
# Add JupyterLab
RUN pip install --no-cache-dir jupyterlab
#RUN pip install pipx
#RUN pipx install renku
# Add any other packages needed for JupyterLab
#RUN pip install --no-cache-dir matplotlib scikit-learn
# If you want to set JupyterLab as the default command
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root", "--NotebookApp.token='my-token'"]

10
requirements.txt Normal file
View File

@ -0,0 +1,10 @@
dash==2.17.1
dash-bootstrap-components==1.6.0
flask==3.0.3
h5py==3.10.0
matplotlib==3.8.4
numpy==1.26.4
openai==1.25.1
pandas==2.2.2
plotly==5.18.0
requests==2.31.0