-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (28 loc) · 1000 Bytes
/
Dockerfile
File metadata and controls
38 lines (28 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Use the official Python image as a base image
FROM python:3.11.9
# Set the working directory
WORKDIR /app
# Install PyTorch early to leverage caching
RUN pip install torch
# # Copy the wheels directory
# COPY wheels ./wheels
# # Install torch-geometric related wheels from the local directory
# RUN pip install --no-cache-dir --find-links=./wheels \
# torch-cluster \
# torch-scatter \
# torch-sparse \
# torch-spline-conv
# Copy the requirements file (excluding torch-geometric wheels as they are pre-installed)
COPY docker_requirements.txt .
# Install remaining dependencies from the requirements file
RUN pip install --no-cache-dir -r docker_requirements.txt
# Copy the remaining application files
COPY fedgraph /app/fedgraph
COPY setup.py .
COPY README.md .
# Install the application
RUN pip install .
# Copy documentation and examples
COPY tutorials /app/docs/examples
# Specify the command to run the application
# CMD ["python", "/app/docs/examples/example_LP.py"]