feat: enhance Dockerfile and README for improved installation and security practices
This commit is contained in:
1 parent
5eb07078ec
commit
ded0752d24
2 files changed
+17
-1
No files matched your search
+3
-1
@@ -30,7 +30,9 @@ WORKDIR /var/www/html
|
||||
COPY . /var/www/html
|
||||
|
||||
# Install PHP dependencies
|
||||
RUN composer install --no-dev --optimize-autoloader
|
||||
RUN git config --global --add safe.directory /var/www/html \
|
||||
&& composer config --global audit.block-insecure false \
|
||||
&& composer install --no-dev --optimize-autoloader --no-security-blocking
|
||||
|
||||
# Configure Apache
|
||||
COPY apache.conf /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
Reference in new issue
Block a user