mirror of
https://github.com/systemed/tilemaker.git
synced 2026-05-06 08:26:46 -04:00
53 lines
1.3 KiB
Docker
53 lines
1.3 KiB
Docker
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 \
|
|
libsqlite3-dev \
|
|
shapelib \
|
|
libshp-dev \
|
|
libboost-program-options-dev \
|
|
libboost-filesystem-dev \
|
|
libboost-system-dev \
|
|
libboost-iostreams-dev \
|
|
rapidjson-dev \
|
|
cmake \
|
|
zlib1g-dev
|
|
|
|
COPY CMakeLists.txt /
|
|
COPY cmake /cmake
|
|
COPY src /src
|
|
COPY include /include
|
|
COPY server /server
|
|
|
|
WORKDIR /build
|
|
|
|
RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ ..
|
|
RUN cmake --build .
|
|
RUN strip tilemaker
|
|
RUN strip tilemaker-server
|
|
|
|
FROM debian:bullseye-slim
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
liblua5.1-0 \
|
|
libshp-dev \
|
|
libsqlite3-dev \
|
|
libboost-filesystem-dev \
|
|
libboost-program-options-dev \
|
|
libboost-iostreams-dev
|
|
WORKDIR /
|
|
COPY --from=src /build/tilemaker .
|
|
COPY resources /resources
|
|
COPY process.lua .
|
|
COPY config.json .
|
|
|
|
# Entrypoint for docker, wrapped with /bin/sh to remove requirement for executable permissions on script
|
|
ENTRYPOINT ["/bin/sh", "/resources/docker-entrypoint.sh"]
|