Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
work for local builds too
Ronald A. Richardson92c153cf933d
diff --git a/docker/Dockerfile b/docker/Dockerfileindex b78d947d..262eb8f6 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -51,29 +51,20 @@ RUN chown -R www-data:www-data /var/www/html/apiRUN mkdir -p /root/.composerRUN mkdir -p /var/www/.composer && chown www-data:www-data /var/www/.composer-# # Load the secret into the auth.json file.-# RUN --mount=type=secret,id=composer_auth,target=/root/.composer/auth.json--# # Print the contents of the auth.json file-# RUN cat /root/.composer/auth.json-# Setup logging-# RUN mkdir -p ./storage/logs/ && ln -sf /dev/stdout ./storage/logs/laravel-$(date +'%Y-%m-%d').logRUN mkdir -p ./storage/logs/ && touch ./storage/logs/laravel-$(date +'%Y-%m-%d').logRUN chown -R www-data:www-data ./storageRUN chmod -R 755 ./storage-# Load the secret into the auth.json file, print its contents, and run composer commands+# Load the secret into the auth.json file if exists, and install dependenciesRUN --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 && \+ if [ -f "/root/.composer/auth.json" ]; then \+ cat /root/.composer/auth.json && \+ cp /root/.composer/auth.json /var/www/.composer/auth.json && \+ chown www-data:www-data /var/www/.composer/auth.json; \+ fi && \su www-data -s /bin/sh -c "composer install && composer dumpautoload"-# # Install depencendies-# USER www-data-# RUN composer install-# RUN composer dumpautoload-# ContinueUSER rootWORKDIR /