diff --git a/build/Dockerfile b/build/Dockerfile index dc1a5ab..34a21d6 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -102,6 +102,6 @@ RUN useradd --groups sudo --create-home --shell /bin/bash $USER \ && echo "${USER} ALL=(ALL) NOPASSWD:ALL" >/etc/sudoers.d/${USER} \ && chmod 0440 /etc/sudoers.d/${USER} -RUN rm -rf ${WORKDIR}/* +RUN rm -rf /var/www/html/* USER ${USER} diff --git a/build/supervisord.conf b/build/supervisord.conf index 48d809b..e2b9638 100644 --- a/build/supervisord.conf +++ b/build/supervisord.conf @@ -5,7 +5,7 @@ logfile=/var/log/supervisor/supervisord.log pidfile=/var/run/supervisord.pid [program:php] -command=/usr/bin/php8.3 -d variables_order=EGPCS /var/www/html/project/artisan serve --host=0.0.0.0 --port=80 +command=/usr/bin/php8.3 -d variables_order=EGPCS /var/www/html/artisan serve --host=0.0.0.0 --port=80 user=coder environment=LARAVEL_SAIL="1" stdout_logfile=/dev/stdout diff --git a/main.tf b/main.tf index a5f0b71..30dbfd1 100644 --- a/main.tf +++ b/main.tf @@ -27,6 +27,7 @@ module "filebrowser" { version = "1.0.8" agent_id = coder_agent.main.id folder = "/var/www/html" + database_path = "/home/coder/filebrowser.db" } module "jetbrains_gateway" {