Skip to content

Modular logistics and supply chain operating system (LSOS)

should work

Ronald A. Richardsonbecb39b447e5
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 8ebb10e0..f79f545e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -57,8 +57,10 @@ RUN chown -R www-data:www-data ./storage
RUN chmod -R 755 ./storage
# Load the secret into the auth.json file if exists, and install dependencies
-COPY composer-auth.jso[n] /var/www/.composer/auth.json
-RUN --mount=type=secret,id=composer_auth,target=/var/www/.composer/auth.json \
+COPY composer-auth.jso[n] /root/.composer/auth.json
+RUN --mount=type=secret,id=composer_auth,target=/root/.composer/auth.json \
+ cp /root/.composer/auth.json /var/www/.composer/auth.json && \
+ chown www-data:www-data /var/www/.composer/auth.json && \
su www-data -s /bin/sh -c "composer install && composer dumpautoload"
# Continue