FROM keking/kkfileview:4.1.0 ENV SERVER_PORT=7860 ENV KK_SERVER_PORT=7860 EXPOSE 7860 USER root RUN chmod -R 777 /opt/kkFileView* || echo "Directory not found, skipping chmod"