From 595b4c448cacc5eddc1a1a9db928c350bb798825 Mon Sep 17 00:00:00 2001 From: Yoav Ast <98748304+Yoavast@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:23:28 +0200 Subject: [PATCH] Delete Dockerfile --- Dockerfile | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index b04b9f7..0000000 --- a/Dockerfile +++ /dev/null @@ -1,38 +0,0 @@ -FROM debian:9.2 - -LABEL maintainer "opsxcq@strm.sh" - -RUN apt-get update && \ - apt-get upgrade -y && \ - DEBIAN_FRONTEND=noninteractive apt-get install -y \ - debconf-utils && \ - echo mariadb-server mysql-server/root_password password vulnerables | debconf-set-selections && \ - echo mariadb-server mysql-server/root_password_again password vulnerables | debconf-set-selections && \ - DEBIAN_FRONTEND=noninteractive apt-get install -y \ - apache2 \ - mariadb-server \ - php \ - php-mysql \ - php-pgsql \ - php-pear \ - php-gd \ - && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -COPY php.ini /etc/php5/apache2/php.ini -COPY dvwa /var/www/html - -COPY config.inc.php /var/www/html/config/ - -RUN chown www-data:www-data -R /var/www/html && \ - rm /var/www/html/index.html - -RUN service mysql start && \ - sleep 3 && \ - mysql -uroot -pvulnerables -e "CREATE USER app@localhost IDENTIFIED BY 'vulnerables';CREATE DATABASE dvwa;GRANT ALL privileges ON dvwa.* TO 'app'@localhost;" - -EXPOSE 80 - -COPY main.sh / -ENTRYPOINT ["/main.sh"]