misc_pterodactyl-panel/Dockerfile

20 lines
678 B
Text
Raw Normal View History

2018-07-08 15:13:18 +00:00
FROM alpine:3.8
2018-05-18 02:53:17 +00:00
WORKDIR /app
2018-07-18 16:15:33 +00:00
RUN apk add --no-cache --update ca-certificates certbot nginx dcron curl tini php7 php7-bcmath php7-common php7-dom php7-fpm php7-gd php7-mbstring php7-openssl php7-zip php7-pdo php7-phar php7-json php7-pdo_mysql php7-session php7-ctype php7-tokenizer php7-zlib \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2018-05-18 02:53:17 +00:00
COPY . ./
2018-07-08 15:28:26 +00:00
COPY .dev/docker/default.conf /etc/nginx/conf.d/default.conf
2018-05-18 02:53:17 +00:00
2018-07-08 15:14:20 +00:00
RUN cp .env.example .env && composer install --no-dev
2018-05-18 02:53:17 +00:00
2018-07-08 15:14:20 +00:00
EXPOSE 80 443
2018-05-18 02:53:17 +00:00
2018-07-08 15:14:20 +00:00
RUN chown -R www-data:www-data . && chmod -R 777 storage/* bootstrap/cache /var/run/php
2018-05-18 02:53:17 +00:00
2018-05-18 13:11:33 +00:00
ENTRYPOINT ["ash", ".dev/entrypoint.sh"]
2018-05-18 02:53:17 +00:00