PteroTheme/Dockerfile

21 lines
805 B
Docker
Raw Normal View History

2018-07-08 16:13:18 +01:00
FROM alpine:3.8
2018-05-18 03:53:17 +01:00
WORKDIR /app
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 php7-simplexml \
2018-07-18 17:15:33 +01:00
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
2018-05-18 03:53:17 +01:00
COPY . ./
RUN cp .dev/docker/default.conf /etc/nginx/conf.d/default.conf \
&& cp .dev/docker/www.conf /etc/php7/php-fpm.d/www.conf \
2018-08-05 00:21:51 +01:00
&& mkdir /var/run/php \
2018-08-14 04:33:15 +01:00
&& cp .env.example .env \
&& composer install --no-dev --optimize-autoloader \
&& rm .env
2018-05-18 03:53:17 +01:00
2018-07-08 16:14:20 +01:00
EXPOSE 80 443
2018-05-18 03:53:17 +01:00
RUN chown -R nginx:nginx . && chmod -R 777 storage/* bootstrap/cache
2018-05-18 03:53:17 +01:00
2018-08-05 00:21:51 +01:00
ENTRYPOINT ["ash", ".dev/docker/entrypoint.sh"]