diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-25 12:48:47 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-25 12:48:47 +0100 |
| commit | aa76b5ad792108c61e8cec1f98e6ba5e68900c72 (patch) | |
| tree | f58a53b34fd70a9c3f2bdbb5ac8aab8c03ef23c8 | |
| parent | 84496271c4ca2b2f8a5bfcd6fca449bbb3fd57a9 (diff) | |
prepares DB_PATH in http.Dockerfile
| -rw-r--r-- | http.Dockerfile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/http.Dockerfile b/http.Dockerfile index d5078f5..3ff404f 100644 --- a/http.Dockerfile +++ b/http.Dockerfile @@ -5,4 +5,8 @@ COPY http/php /usr/share/nginx/php COPY http/out /usr/share/nginx/html COPY http/php-fpm.conf /etc/php85/php-fpm.d/joeac.net-http_pool.conf COPY http/nginx.conf /etc/nginx/nginx.conf -CMD php-fpm85 && nginx -g "daemon off;" +CMD mkdir -p "$(dirname "$DB_PATH")" \ + && touch $DB_PATH \ + && chmod -R o+w "$(dirname "$DB_PATH")" \ + && php-fpm85 \ + && nginx -g "daemon off;" |
