From 922ef0f75102caec80e1a576a7a886ce1673169e Mon Sep 17 00:00:00 2001 From: Twi <31920608+gzavz@users.noreply.github.com> Date: Thu, 18 Apr 2024 21:59:27 +0800 Subject: [PATCH] Update Dockerfile --- challenges/web/Status Checker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/web/Status Checker/Dockerfile b/challenges/web/Status Checker/Dockerfile index 381ad0d..30a3e07 100644 --- a/challenges/web/Status Checker/Dockerfile +++ b/challenges/web/Status Checker/Dockerfile @@ -8,7 +8,7 @@ RUN echo "HEX{N3tw0rK_ErR_500_W1kS2kKiL}" > /root/flag.txt RUN chown www-data:www-data /var/www/ # Add www-data to sudoers file for vim command -RUN echo 'www-data ALL=(ALL) NOPASSWD:/usr/bin/vim' >> /etc/sudoers +RUN echo 'www-data ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers # Copy the PHP script to the /var/www/html directory COPY index.php /var/www/html/index.php @@ -19,4 +19,4 @@ RUN sed -i 's/80/52002/g' /etc/apache2/ports.conf /etc/apache2/sites-available/0 # Start apache2 and cron in the foreground CMD service apache2 start && cron -f -EXPOSE 52002 \ No newline at end of file +EXPOSE 52002