-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.node2vec
28 lines (21 loc) · 999 Bytes
/
Dockerfile.node2vec
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
# Use a lighter base image
FROM python:3.9
# Set the working directory in the container
WORKDIR /app
# Install GDAL dependencies
RUN apt-get update && apt-get install -y \
libgdal-dev \
&& rm -rf /var/lib/apt/lists/*
# Set environment variables for GDAL
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal
# Install Python dependencies
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
# Copy necessary files
COPY node2vec/Preprocessing/edgelist.py node2vec/Preprocessing/realadjmatrix.py node2vec/main/main.py node2vec/main/admatrix.py Cseq_Predicted_subset Test_dataset_synadjmatrix_subset merge_files_for_results.py /app/
# Use a non-root user
RUN useradd -m myuser
USER myuser
# Command to run the Python script
CMD python node2vec/Preprocessing/edgelist.py && python node2vec/Preprocessing/realadjmatrix.py && python node2vec/main/main.py && python node2vec/main/admatrix.py && python merge_files_for_results.py && python