diff --git a/.dockerignore b/.dockerignore index 5e8b390..08b73f1 100644 --- a/.dockerignore +++ b/.dockerignore @@ -6,3 +6,5 @@ logs/ *.pyc __pycache__/ *.h5 +.Trash-0/ +.ipynb_checkpoints/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 357fe2d..615e4af 100644 --- a/Dockerfile +++ b/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'"] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..205321f --- /dev/null +++ b/requirements.txt @@ -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