mirror of
https://gitea.psi.ch/APOG/acsmnode.git
synced 2025-06-24 05:07:57 +02:00
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:
@ -6,3 +6,5 @@ logs/
|
||||
*.pyc
|
||||
__pycache__/
|
||||
*.h5
|
||||
.Trash-0/
|
||||
.ipynb_checkpoints/
|
15
Dockerfile
15
Dockerfile
@ -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
10
requirements.txt
Normal 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
|
Reference in New Issue
Block a user