added the security hardened configs to be copied into the shipped image
This commit is contained in:
@@ -69,6 +69,11 @@ RUN mkdir -p /usr/local/php/conf.d /var/run/php
|
|||||||
# Copy compiled PHP
|
# Copy compiled PHP
|
||||||
COPY --from=builder /usr/local/php /usr/local/php
|
COPY --from=builder /usr/local/php /usr/local/php
|
||||||
|
|
||||||
|
# Copy hardened configs on top
|
||||||
|
COPY php-fpm.conf /usr/local/php/php-fpm.conf
|
||||||
|
COPY php-fpm.d/www.conf /usr/local/php/php-fpm.d/www.conf
|
||||||
|
COPY conf.d/security.ini /usr/local/php/conf.d/security.ini
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
||||||
USER php
|
USER php
|
||||||
|
|||||||
Reference in New Issue
Block a user