Docker fixes

This commit is contained in:
zyphlar
2025-10-14 10:12:07 +00:00
parent 03adb37007
commit 31b60be3e8
2 changed files with 10 additions and 1 deletions

View File

@@ -9,7 +9,8 @@ RUN apt-get update -qq \
curl \
osmctools \
rclone \
sftp \
openssh-client \
git \
sshpass \
vim \
wget \
@@ -39,6 +40,10 @@ RUN apt-get update -qq \
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/organicmaps

View File

@@ -17,6 +17,10 @@ set -e
#UK_POSTCODES_URL:/home/planet/postcodes/gb-postcode-data/gb_postcodes.csv
#US_POSTCODES_URL:/home/planet/postcodes/us-postcodes/uszips.csv
echo "<$(date +%T)> Setting git as safe dir..."
git config --global --add safe.directory /root/OM/organicmaps
echo "<$(date +%T)> Starting..."
# Prepare paths