prepares DB_PATH in http.Dockerfile
This commit is contained in:
+5
-1
@@ -5,4 +5,8 @@ COPY http/php /usr/share/nginx/php
|
|||||||
COPY http/out /usr/share/nginx/html
|
COPY http/out /usr/share/nginx/html
|
||||||
COPY http/php-fpm.conf /etc/php85/php-fpm.d/joeac.net-http_pool.conf
|
COPY http/php-fpm.conf /etc/php85/php-fpm.d/joeac.net-http_pool.conf
|
||||||
COPY http/nginx.conf /etc/nginx/nginx.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;"
|
||||||
|
|||||||
Reference in New Issue
Block a user