fix dockerfile

This commit is contained in:
Salam-vsem
2025-05-19 13:09:59 +03:00
parent 1fa7da7606
commit 7d2068b12b

View File

@@ -25,12 +25,6 @@ RUN echo 'Header set X-Content-Type-Options "nosniff"' >> /usr/local/apache2/con
echo 'Header set X-Frame-Options "SAMEORIGIN"' >> /usr/local/apache2/conf/httpd.conf && \
echo 'Header set X-XSS-Protection "1; mode=block"' >> /usr/local/apache2/conf/httpd.conf
# Use non-root user for better security
RUN adduser -D -H -u 1000 appuser && \
chown -R appuser:appuser /usr/local/apache2/htdocs/
USER appuser
EXPOSE 80
# Health check