-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated dockerfile with paths and env
- Loading branch information
Showing
3 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
FROM python:3.11 | ||
|
||
WORKDIR /home/gns | ||
WORKDIR /app | ||
|
||
COPY requirements.txt . | ||
|
||
RUN pip3 install --upgrade pip | ||
RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --user | ||
RUN pip3 install torch_geometric --user | ||
RUN pip3 install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.3.0+cpu.html --user | ||
RUN pip3 install -r requirements.txt | ||
RUN pip3 install --upgrade pip && \ | ||
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \ | ||
pip3 install torch_geometric && \ | ||
pip3 install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.3.0+cpu.html && \ | ||
pip3 install -r requirements.txt | ||
|
||
ENV PYTHONPATH=/app | ||
|
||
# Add Python path to PATH | ||
ENV PATH="/usr/local/bin:${PATH}" | ||
|
||
# Create a bash script to set up the environment | ||
RUN echo '#!/bin/bash\n\ | ||
export PYTHONPATH=/app\n\ | ||
export PATH="/usr/local/bin:$PATH"\n\ | ||
exec "$@"' > /entrypoint.sh && chmod +x /entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["/bin/bash"] |