Skip to content
Snippets Groups Projects
Commit 34dc955f authored by Uku Taht's avatar Uku Taht
Browse files

Revert "Remove geonames file from Dockerfile"

This reverts commit c3178b25.
parent e4b99dba
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,8 @@ RUN apk add --no-cache git nodejs yarn python3 npm ca-certificates wget gnupg ma ...@@ -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 npm@latest -g && \
npm install -g webpack npm install -g webpack
RUN wget https://s3.eu-central-1.wasabisys.com/plausible-application/geonames.csv -q
COPY mix.exs ./ COPY mix.exs ./
COPY mix.lock ./ COPY mix.lock ./
RUN mix local.hex --force && \ RUN mix local.hex --force && \
...@@ -43,6 +45,8 @@ RUN npm run deploy --prefix ./assets && \ ...@@ -43,6 +45,8 @@ RUN npm run deploy --prefix ./assets && \
mix download_country_database && \ mix download_country_database && \
# https://hexdocs.pm/sentry/Sentry.Sources.html#module-source-code-storage # https://hexdocs.pm/sentry/Sentry.Sources.html#module-source-code-storage
mix sentry_recompile mix sentry_recompile
mix sentry_recompile && \
mv geonames.csv ./priv/geonames.csv
WORKDIR /app WORKDIR /app
COPY rel rel COPY rel rel
...@@ -66,6 +70,7 @@ COPY --from=buildcontainer /app/_build/prod/rel/plausible /app ...@@ -66,6 +70,7 @@ COPY --from=buildcontainer /app/_build/prod/rel/plausible /app
RUN chown -R plausibleuser:plausibleuser /app RUN chown -R plausibleuser:plausibleuser /app
USER plausibleuser USER plausibleuser
WORKDIR /app WORKDIR /app
ENV GEONAMES_SOURCE_FILE=/app/lib/plausible-0.0.1/priv/geonames.csv
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 8000 EXPOSE 8000
CMD ["run"] CMD ["run"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment