From 34dc955f093a70e682315481e25b0e046e2acd28 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Wed, 29 Dec 2021 11:58:22 +0200 Subject: [PATCH] Revert "Remove geonames file from Dockerfile" This reverts commit c3178b25e00ec3fe152904cfa1f9b47076fc0435. --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 39624571a..8d22e1b50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,8 @@ RUN apk add --no-cache git nodejs yarn python3 npm ca-certificates wget gnupg ma npm install npm@latest -g && \ npm install -g webpack +RUN wget https://s3.eu-central-1.wasabisys.com/plausible-application/geonames.csv -q + COPY mix.exs ./ COPY mix.lock ./ RUN mix local.hex --force && \ @@ -43,6 +45,8 @@ RUN npm run deploy --prefix ./assets && \ mix download_country_database && \ # https://hexdocs.pm/sentry/Sentry.Sources.html#module-source-code-storage mix sentry_recompile + mix sentry_recompile && \ + mv geonames.csv ./priv/geonames.csv WORKDIR /app COPY rel rel @@ -66,6 +70,7 @@ COPY --from=buildcontainer /app/_build/prod/rel/plausible /app RUN chown -R plausibleuser:plausibleuser /app USER plausibleuser WORKDIR /app +ENV GEONAMES_SOURCE_FILE=/app/lib/plausible-0.0.1/priv/geonames.csv ENTRYPOINT ["/entrypoint.sh"] EXPOSE 8000 CMD ["run"]