-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (30 loc) · 1022 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (30 loc) · 1022 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
FROM python:3.6-slim
ENV PATH "$PATH:/opt/bin"
ENV PYTHONPATH "/app"
ENV RUNPATH "/app/track_simulator/main"
ENV MONGO_HOST "db"
ENV MONGO_PORT 27017
ENV MONGO_DATABASE "trackdb"
ENV MONGO_GRAPH_INFORMATION_COLLECTION "graphDf"
ENV MONGO_TRACK_INFORMATION_COLLECTION "trackDf"
ENV MONGO_TRACK_STATISTICS_COLLECTION "statisticsDf"
ENV LAST_VERSION_GRAPH "Graph_Analysis_05-16-2020"
ENV ROOT_DIRECTORY "/app"
ENV FILE_DIRECTORY "/analysis"
ENV EXPORT_ANALYSIS_IMAGES_FOLDER "/data/analysis/statistics"
ENV EXPORT_SIMULATIONS_GPX_FOLDER "/data/simulation/gpx"
ENV EXPORT_SIMULATIONS_IMAGES_FOLDER "/data/simulation/images"
ENV NORTH_COMPONENT 39.5713
ENV SOUTH_COMPONENT 39.5573
ENV EAST_COMPONENT 2.6257
ENV WEST_COMPONENT 2.6023
ENV GENERATION_DISTANCE 20
ENV DESTINATION_NODE_THRESHOLD 24
COPY src /app
COPY bin /opt/bin
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libatlas-base-dev gfortran libspatialindex-dev
ADD requirements.txt .
RUN pip3 install -r requirements.txt
ARG command