-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (20 loc) · 830 Bytes
/
Dockerfile
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 an official Python runtime as a parent image
FROM python:3
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
# concorde install and make
RUN cd /app/concorde && ./configure --with-qsopt=/app/QS
RUN cd /app/concorde && make clean && make
RUN cp /app/concorde/TSP/concorde /usr/local/bin
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
RUN pip install git+https://github.com/perrygeo/pytsp
# Define environment variable
ENV NAME TSP-Solver
# Test python TSP concorde when the container launches
# CMD ["python", "tsp_concorde_ex.py"]
CMD ["tail", "solver_phase2.py"]
# Run solver when the container launches
# CMD ["python", "solver_phase2.py", "in/50_kevin.in"]