Skip to content

Modular logistics and supply chain operating system (LSOS)

place `/.composer/auth.json` in the correct place

Ronald A. Richardson81e3d8466d63
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 1b6a6121..859793a5 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -64,8 +64,8 @@ RUN chown -R www-data:www-data ./storage
RUN chmod -R 755 ./storage
# Load the secret into the auth.json file, print its contents, and run composer commands
-RUN --mount=type=secret,id=composer_auth,target=/root/.composer/auth.json \
- cat /root/.composer/auth.json && \
+RUN --mount=type=secret,id=composer_auth,target=/var/www/.composer/auth.json \
+ cat /var/www/.composer/auth.json && \
su www-data -s /bin/sh -c "composer install && composer dumpautoload"
# # Install depencendies