forked from systemed/tilemaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (35 loc) · 941 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM debian:bullseye-slim AS src
LABEL Description="Tilemaker" Version="1.4.0"
ARG DEBIAN_FRONTEND=noninteractive
# install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
liblua5.1-0 \
liblua5.1-0-dev \
libprotobuf-dev \
libsqlite3-dev \
protobuf-compiler \
shapelib \
libshp-dev \
libboost-program-options-dev \
libboost-filesystem-dev \
libboost-system-dev \
libboost-iostreams-dev \
rapidjson-dev \
cmake
COPY CMakeLists.txt /
COPY cmake /cmake
COPY src /src
COPY include /include
WORKDIR /build
RUN cmake -DTILEMAKER_BUILD_STATIC=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ ..
RUN cmake --build .
RUN strip tilemaker
FROM debian:bullseye-slim
WORKDIR /
COPY --from=src /build/tilemaker .
COPY resources /resources
COPY process.lua .
COPY config.json .
ENTRYPOINT ["/tilemaker"]