Files
comaps/tools/unix/Dockerfile

71 lines
1.6 KiB
Docker
Executable File

# See run-docker.sh for cloning, building, and running the maps generator Docker routine
FROM debian:latest
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
cargo \
clang \
cmake \
curl \
git \
jq \
libc++-dev \
libfreetype-dev \
libgl1-mesa-dev \
libglvnd-dev \
libharfbuzz-dev \
libicu-dev \
libqt6positioning6 \
libqt6positioning6-plugins \
libqt6svg6-dev \
libsqlite3-dev \
libxcursor-dev \
libxi-dev \
libxinerama-dev \
libxrandr-dev \
ninja-build \
openssh-client \
osmctools \
osmium-tool \
pyosmium \
python3 \
python3-pip \
python3-venv \
qt6-base-dev \
qt6-positioning-dev \
rclone \
rustc \
sshpass \
vim \
wget \
wget2 \
zlib1g-dev \
&& rm -rf /var/cache/apt/* /var/lib/apt/lists/*;
# Allow pip to install system-wide in the container
RUN rm -f /usr/lib/python*/EXTERNALLY-MANAGED
RUN pip3 install "protobuf<4"
RUN mkdir /root/OM
# When running, bind mount the repo here
RUN mkdir /root/OM/comaps-init
# And a volume to store the large output/temp files here
RUN mkdir /root/OM/osm-maps
# And the output of the app build
RUN mkdir /root/OM/omim-build-release
RUN mkdir /root/OM/omim-build-relwithdebinfo
# And a volume to store >10gb files for the planet here
RUN mkdir /home/planet
WORKDIR /root/OM/comaps-init
# For debugging
#CMD /bin/bash
CMD /root/OM/comaps-init/tools/unix/docker_maps_generator.sh