fix dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user