diff options
-rw-r--r-- | Dockerfile | 3 | ||||
-rwxr-xr-x | scripts/entrypoint.pl | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile index 4a387f1a2..7de8088be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,8 @@ COPY . . RUN mv /opt/bmo/local /app && \ chown -R app:app /app && \ - perl -c /app/scripts/entrypoint.pl + perl -c /app/scripts/entrypoint.pl && \ + setcap 'cap_net_bind_service=+ep' /usr/sbin/httpd USER app diff --git a/scripts/entrypoint.pl b/scripts/entrypoint.pl index 40e7cd577..04d442180 100755 --- a/scripts/entrypoint.pl +++ b/scripts/entrypoint.pl @@ -34,6 +34,11 @@ check_env() unless $cmd eq 'shell'; $func->(@ARGV); +sub cmd_demo { + cmd_load_test_data() unless -f "/app/data/params"; + cmd_httpd(); +} + sub cmd_httpd { check_data_dir(); wait_for_db(); |