-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
Dockerfile
19 lines (15 loc) · 807 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM docker.io/library/php:8-apache
LABEL org.opencontainers.image.source=https://github.com/digininja/DVWA
LABEL org.opencontainers.image.description="DVWA pre-built image."
LABEL org.opencontainers.image.licenses="gpl-3.0"
WORKDIR /var/www/html
# https://www.php.net/manual/en/image.installation.php
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev iputils-ping \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-jpeg --with-freetype \
# Use pdo_sqlite instead of pdo_mysql if you want to use sqlite
&& docker-php-ext-install gd mysqli pdo pdo_mysql
COPY --chown=www-data:www-data . .
COPY --chown=www-data:www-data config/config.inc.php.dist config/config.inc.php