lite geonames (#2214)

This commit is contained in:
ruslandoga 2022-10-04 11:54:24 +04:00 committed by GitHub
parent c079ff05c1
commit bac3c3e4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,6 @@ 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 ./
COPY config ./config
@ -42,8 +40,7 @@ RUN npm run deploy --prefix ./assets && \
mix phx.digest priv/static && \
mix download_country_database && \
# https://hexdocs.pm/sentry/Sentry.Sources.html#module-source-code-storage
mix sentry_recompile && \
mv geonames.csv ./priv/geonames.csv
mix sentry_recompile
WORKDIR /app
COPY rel rel
@ -70,7 +67,6 @@ 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
ENV LISTEN_IP=0.0.0.0
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 8000