first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
FROM php:5.6-apache
LABEL maintainer="phithon <root@leavesongs.com>"
# install the PHP extensions we need
RUN set -ex; \
\
if command -v a2enmod; then \
a2enmod rewrite; \
fi; \
\
savedAptMark="$(apt-mark showmanual)"; \
\
apt-get update; \
apt-get install -y --no-install-recommends \
libjpeg-dev \
libpng-dev \
; \
\
docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr; \
docker-php-ext-install -j "$(nproc)" \
gd \
zip \
pdo_mysql \
; \
\
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
apt-mark auto '.*' > /dev/null; \
apt-mark manual $savedAptMark; \
ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
| awk '/=>/ { print $3 }' \
| sort -u \
| xargs -r dpkg-query -S \
| cut -d: -f1 \
| sort -u \
| xargs -rt apt-mark manual; \
\
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/html
# https://www.drupal.org/node/3060/release
ENV DRUPAL_VERSION 7.31
RUN curl -fSL "https://ftp.drupal.org/files/projects/drupal-${DRUPAL_VERSION}.tar.gz" -o drupal.tar.gz \
&& tar -xz --strip-components=1 -f drupal.tar.gz \
&& rm drupal.tar.gz \
&& chown -R www-data:www-data sites modules themes

View File

@@ -0,0 +1,16 @@
FROM drupal:8.3.0
LABEL maintainer="phithon <root@leavesongs.com>"
RUN set -ex \
&& echo 'deb [trusted=yes check-valid-until=no] http://snapshot.debian.org/archive/debian/20190624/ jessie main' > /etc/apt/sources.list \
&& echo 'deb-src [trusted=yes check-valid-until=no] http://snapshot.debian.org/archive/debian/20190624/ jessie main' >> /etc/apt/sources.list \
&& echo 'deb [trusted=yes check-valid-until=no] http://snapshot.debian.org/archive/debian-security/20190624/ jessie/updates main' >> /etc/apt/sources.list \
&& echo 'deb-src [trusted=yes check-valid-until=no] http://snapshot.debian.org/archive/debian-security/20190624/ jessie/updates main' >> /etc/apt/sources.list
RUN set -ex \
&& apt-get update \
&& apt-get install --no-install-recommends -y libyaml-dev \
&& pecl install yaml-2.0.3 \
&& docker-php-ext-enable yaml \
&& echo 'yaml.decode_php = 1' >> /usr/local/etc/php/conf.d/docker-php-ext-yaml.ini

View File

@@ -0,0 +1,3 @@
FROM drupal:8.5.0
LABEL maintainer="phithon <root@leavesongs.com>"