forked from gmazoyer/looking-glass
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (14 loc) · 667 Bytes
/
Dockerfile
File metadata and controls
15 lines (14 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM php:7.2-apache
RUN apt update \
&& apt -y install bash git ssh libmcrypt-dev openssl libsodium-dev libgmp-dev libgmp3-dev \
&& ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h \
&& docker-php-ext-install -j$(nproc) gmp \
&& pecl install mcrypt-1.0.1 \
&& docker-php-ext-enable mcrypt \
&& pecl install libsodium \
&& docker-php-ext-enable sodium \
&& git clone https://github.com/respawner/looking-glass.git --branch master --single-branch /var/www/html/ \
&& apt purge -y --auto-remove git \
&& mkdir -p /var/log/ \
&& touch /var/log/looking-glass.log \
&& chown www-data /var/log/looking-glass.log