-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
26 lines (18 loc) · 932 Bytes
/
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
FROM alpine:3.5
MAINTAINER Michael Parker, <[email protected]>
WORKDIR /var/www/html/
RUN apk update \
&& apk add openssl-dev php7 php7-bcmath php7-common php7-dom php7-fpm php7-gd php7-mbstring php7-openssl php7-pdo php7-phar php7-json php7-pdo_mysql php7-session php7-ctype curl tar tini caddy \
&& mv /usr/bin/php7 /usr/bin/php \
&& mv /usr/sbin/php-fpm7 /usr/sbin/php-fpm
COPY ./manifest/ /
RUN curl -Lo v0.5.6.tar.gz https://github.com/Pterodactyl/Panel/archive/v0.5.6.tar.gz \
&& tar --strip-components=1 -xzvf v0.5.6.tar.gz \
&& rm v0.5.6.tar.gz \
&& chown -R caddy:caddy * \
&& chmod -R 777 storage/* bootstrap/cache \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer install --ansi --no-dev
ENTRYPOINT ["/bin/ash", "/var/www/html/entrypoint.sh"]
EXPOSE 80
CMD ["/sbin/tini", "--", "/usr/sbin/caddy", "-conf", "/etc/caddy/caddy.conf"]