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

Add download step to docker build

parent 48be0e3f
Branches
No related tags found
No related merge requests found
...@@ -40,7 +40,8 @@ COPY lib ./lib ...@@ -40,7 +40,8 @@ COPY lib ./lib
RUN npm run deploy --prefix ./assets && \ RUN npm run deploy --prefix ./assets && \
npm run deploy --prefix ./tracker && \ npm run deploy --prefix ./tracker && \
mix phx.digest priv/static mix phx.digest priv/static && \
mix download_country_database
WORKDIR /app WORKDIR /app
COPY rel rel COPY rel rel
......
...@@ -66,7 +66,13 @@ cron_enabled = String.to_existing_atom(System.get_env("CRON_ENABLED", "false")) ...@@ -66,7 +66,13 @@ cron_enabled = String.to_existing_atom(System.get_env("CRON_ENABLED", "false"))
custom_domain_server_ip = System.get_env("CUSTOM_DOMAIN_SERVER_IP") custom_domain_server_ip = System.get_env("CUSTOM_DOMAIN_SERVER_IP")
custom_domain_server_user = System.get_env("CUSTOM_DOMAIN_SERVER_USER") custom_domain_server_user = System.get_env("CUSTOM_DOMAIN_SERVER_USER")
custom_domain_server_password = System.get_env("CUSTOM_DOMAIN_SERVER_PASSWORD") custom_domain_server_password = System.get_env("CUSTOM_DOMAIN_SERVER_PASSWORD")
geolite2_country_db = System.get_env("EOLITE2_COUNTRY_DB", "priv/geodb/dbip-country.mmdb")
geolite2_country_db =
System.get_env(
"GEOLITE2_COUNTRY_DB",
Application.app_dir(:plausible) <> "/priv/geodb/dbip-country.mmdb"
)
disable_auth = String.to_existing_atom(System.get_env("DISABLE_AUTH", "false")) disable_auth = String.to_existing_atom(System.get_env("DISABLE_AUTH", "false"))
disable_registration = String.to_existing_atom(System.get_env("DISABLE_REGISTRATION", "false")) disable_registration = String.to_existing_atom(System.get_env("DISABLE_REGISTRATION", "false"))
hcaptcha_sitekey = System.get_env("HCAPTCHA_SITEKEY") hcaptcha_sitekey = System.get_env("HCAPTCHA_SITEKEY")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment