Skip to content

Modular logistics and supply chain operating system (LSOS)

patch Dockerfile

Ronald A. Richardsonacf3c66c9fc7
diff --git a/docker/Dockerfile b/docker/Dockerfile
index cecef54f..e7dcd457 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -34,14 +34,16 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
# Setup application
WORKDIR /var/www/html/api
-USER www-data
# Copy application files
COPY --chown=www-data:www-data api ./
+RUN chown -R www-data:www-data /var/www/html/api
+USER www-data
# Install Composer dependencies
RUN composer install --no-dev --no-scripts --no-autoloader
+# Continue
USER root
# Set environment