-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
Dockerfile
29 lines (26 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:18.04
LABEL maintainer="JoelGMSec - https://darkbyte.net"
RUN export DEBIAN_FRONTEND=noninteractive && \
apt update && \
apt -y upgrade && \
apt -y install apache2 libapache2-mod-php php-mysql php php-gd php-pear php-curl git pwgen mariadb-client && \
apt -y install sed gcc make autoconf libc-dev pkg-config libmcrypt-dev php7.2-dev && \
pecl install mcrypt-1.0.1 && \
echo 'extension=mcrypt.so' >> /etc/php/7.2/apache2/php.ini && \
cd /var/www/ && \
rm -f html/index.html && \
git clone https://github.com/s3inlc/hashtopolis.git && \
mv hashtopolis/src/* html/ && \
mv /var/www/html/inc /var/www && \
mkdir /var/www/html/inc && \
mkdir -p /var/www/html/inc/utils/locks && \
chown -R www-data:www-data /var/www/html && \
ln -sf /dev/stdout /var/log/apache2/access.log && \
ln -sf /dev/sterr /var/log/apache2/error.log && \
echo "ServerName Hashtopolis" > /etc/apache2/conf-enabled/serverName.conf && \
rm -rf /var/lib/apt /var/lib/dpkg /var/cache/apt /usr/share/doc /usr/share/man /usr/share/info
COPY entrypoint.sh /
COPY conf.php /var/www/
COPY adduser.php /var/www/html/install/
EXPOSE 80
ENTRYPOINT [ "/entrypoint.sh" ]