Update Dockerfile

This commit is contained in:
Twi
2024-04-18 21:59:27 +08:00
committed by GitHub
parent 0523862140
commit 922ef0f751

View File

@@ -8,7 +8,7 @@ RUN echo "HEX{N3tw0rK_ErR_500_W1kS2kKiL}" > /root/flag.txt
RUN chown www-data:www-data /var/www/ RUN chown www-data:www-data /var/www/
# Add www-data to sudoers file for vim command # 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 the PHP script to the /var/www/html directory
COPY index.php /var/www/html/index.php 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 # Start apache2 and cron in the foreground
CMD service apache2 start && cron -f CMD service apache2 start && cron -f
EXPOSE 52002 EXPOSE 52002