From fbd399002fd55feb2f38ace7685af0a554d8bf03 Mon Sep 17 00:00:00 2001 From: Alexandru Mitrea Date: Thu, 30 Nov 2023 13:45:05 +0200 Subject: [PATCH] fix geodata files permissions --- server/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index 454b48a..4022419 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -58,12 +58,13 @@ RUN sed -i -e's/ main/ main contrib non-free non-free-firmware/g' /etc/apt/sourc COPY bin/install-ffmpeg.sh bin/build-lock.json ./ RUN ./install-ffmpeg.sh -ADD https://download.geonames.org/export/dump/cities500.zip /usr/src/resources/cities500.zip -ADD https://download.geonames.org/export/dump/admin1CodesASCII.txt /usr/src/resources/admin1CodesASCII.txt -ADD https://download.geonames.org/export/dump/admin2Codes.txt /usr/src/resources/admin2Codes.txt - -RUN unzip /usr/src/resources/cities500.zip -d /usr/src/resources/ && \ - rm /usr/src/resources/cities500.zip && date --iso-8601=seconds | tr -d "\n" > /usr/src/resources/geodata-date.txt +RUN mkdir -p /usr/src/resources && \ + wget -qO /usr/src/resources/cities500.zip https://download.geonames.org/export/dump/cities500.zip && \ + wget -qO /usr/src/resources/admin1CodesASCII.txt https://download.geonames.org/export/dump/admin1CodesASCII.txt && \ + wget -qO /usr/src/resources/admin2Codes.txt https://download.geonames.org/export/dump/admin2Codes.txt && \ + unzip /usr/src/resources/cities500.zip -d /usr/src/resources/ && \ + rm /usr/src/resources/cities500.zip && \ + date --iso-8601=seconds | tr -d "\n" > /usr/src/resources/geodata-date.txt FROM node:20.10-bookworm-slim as prod WORKDIR /usr/src/app