forked from oscarpilote/Ortho4XP
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
85 lines (69 loc) · 2.18 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM python:3.7-slim
RUN apt update \
&& apt -y install \
--no-install-recommends \
build-essential \
libz-dev \
libjpeg62-turbo-dev \
unzip
RUN mkdir /tmp/wheels \
&& pip3 wheel Pillow-SIMD \
-w /tmp/wheels
COPY Utils/Triangle4XP.c /tmp/triangle/
RUN gcc -O2 -pipe -msse3 \
-o /tmp/triangle/Triangle4XP /tmp/triangle/Triangle4XP.c -lm \
&& strip /tmp/triangle/Triangle4XP
ADD http://dev.x-plane.com/download/tools/xptools_lin_15-3.zip /tmp/
RUN unzip /tmp/xptools_lin_15-3.zip tools/DSFTool -d /tmp/xptools
FROM python:3.7-slim
RUN apt update \
&& apt -y install \
--no-install-recommends \
gdal-bin \
libspatialindex5 \
libjpeg62-turbo \
zlib1g \
p7zip-full \
libnvtt-bin \
wget \
python3-pyproj \
python3-numpy \
python3-shapely \
python3-rtree \
python3-requests \
python3-gdal \
libtk8.6 \
python3-pil \
python3-pil.imagetk \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /tmp/wheels
COPY --from=0 /tmp/wheels/* /tmp/wheels
RUN pip3 install /tmp/wheels/* \
&& rm -r /tmp/wheels
COPY docker/build_ortho.sh /ortho
RUN chmod +x /ortho
COPY Extents/ /ortho4xp/Extents/
COPY Filters /ortho4xp/Filters/
COPY Licence/ /ortho4xp/Licence/
COPY Providers/ /ortho4xp/Providers/
COPY src/ /ortho4xp/src/
COPY Utils/Earth/ /ortho4xp/Utils/Earth/
COPY Utils/*.gif \
Utils/water* Utils/*.png \
/ortho4xp/Utils/
COPY Ortho4XP.cfg Ortho4XP_v130.py README.md /ortho4xp/
COPY --from=0 \
/tmp/triangle/Triangle4XP \
/tmp/xptools/tools/DSFTool \
/ortho4xp/Utils/
RUN mkdir /build
VOLUME /scenery
VOLUME /build
VOLUME /overlay
ENV PYTHONPATH=/usr/lib/python3/dist-packages:/ortho4xp/src
ENV MAX_CONVERT_SLOTS="" \
HIGHRES_AIRPORTS=ICAO \
FILL_NODATA=True \
CUSTOM_DEM='Viewfinderpanoramas (J. de Ferranti) - mostly worldwide'
WORKDIR /ortho4xp
ENTRYPOINT [ "/ortho" ]