Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update docker files #44

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Docker/SPACEc_cpu
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Start from a base CUDA image
FROM ubuntu:20.04
# Start from a base image
FROM debian:bullseye-slim

# Update the package list
RUN apt-get update && \
Expand Down Expand Up @@ -41,19 +41,21 @@ RUN conda run pip install spacec
RUN conda run pip install "TissUUmaps" && \
conda install libxml2=2.9.10 && \
conda run pip install torch_geometric && \
conda run pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.3.0+cu121.html && \
conda run pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.3.0+cu121.html


# Copy notebooks into a new directory in the Docker image
COPY notebooks /notebooks
COPY example_data /example_data

# Set the new directory as the working directory
WORKDIR /notebooks

# Clean up to reduce image size
RUN conda clean -afy

# Expose Jupyter port
EXPOSE 8888
EXPOSE 5100

# Set the default command to run Jupyter
CMD ["conda", "run", "-n", "spacec", "jupyter", "notebook", "--ip='0.0.0.0'", "--port=8888", "--no-browser", "--allow-root", "--NotebookApp.token=''"]
CMD ["conda", "run", "-n", "spacec", "jupyter", "notebook", "--ip='0.0.0.0'", "--port=8888", "--no-browser", "--allow-root", "--NotebookApp.token=''"]
1 change: 0 additions & 1 deletion Docker/SPACEc_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ RUN conda run pip install "TissUUmaps" && \

# Copy notebooks into a new directory in the Docker image
COPY notebooks /notebooks
COPY example_data /example_data

# Set the new directory as the working directory
WORKDIR /notebooks
Expand Down
94 changes: 0 additions & 94 deletions Docker/old/Dockerfile

This file was deleted.

66 changes: 0 additions & 66 deletions Docker/old/tutorial.Dockerfile

This file was deleted.

44 changes: 0 additions & 44 deletions Docker/old/tutorial_init.sh

This file was deleted.

Loading