mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 02:35:42 -04:00
change: add two versions, php and non-php
This commit is contained in:
25
Dockerfile
25
Dockerfile
@@ -1,5 +1,13 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
# #
|
||||
# @file Dockerfile
|
||||
# @about This docker file installs:
|
||||
# - nginx
|
||||
# - php-fpm
|
||||
# - theapptv
|
||||
# #
|
||||
|
||||
# #
|
||||
# Base Image
|
||||
# This container uses a modified version of the Linux server alpine image
|
||||
@@ -31,6 +39,7 @@ ARG VERSION
|
||||
ARG NGINX_VERSION
|
||||
ARG CRON_TIME
|
||||
ENV CRON_TIME="0/60 * * * *"
|
||||
ENV TZ="Etc/UTC"
|
||||
|
||||
ENV URL_XML="https://raw.githubusercontent.com/dtankdempse/thetvapp-m3u/refs/heads/main/guide/epg.xml"
|
||||
ENV URL_XML_GZ="https://raw.githubusercontent.com/dtankdempse/thetvapp-m3u/refs/heads/main/guide/epg.xml.gz"
|
||||
@@ -55,10 +64,6 @@ RUN \
|
||||
openssl \
|
||||
apache2-utils \
|
||||
nginx \
|
||||
php83 \
|
||||
php83-fileinfo \
|
||||
php83-fpm \
|
||||
php83-mbstring \
|
||||
nginx==${NGINX_VERSION} \
|
||||
nginx-mod-http-fancyindex==${NGINX_VERSION} && \
|
||||
echo "**** Install Build Packages ****" && \
|
||||
@@ -74,18 +79,6 @@ RUN \
|
||||
rm -f /etc/nginx/http.d/default.conf && \
|
||||
rm -f /etc/nginx/conf.d/stream.conf && \
|
||||
rm -f /config/www/index.html && \
|
||||
echo "**** Check PHP version and symlink ****" && \
|
||||
if [ "$(readlink /usr/bin/php)" != "php83" ]; then \
|
||||
rm -rf /usr/bin/php && \
|
||||
ln -s /usr/bin/php83 /usr/bin/php; \
|
||||
fi && \
|
||||
echo "**** Configure PHP ****" && \
|
||||
sed -i "s#;error_log = log/php83/error.log.*#error_log = /config/log/php/error.log#g" \
|
||||
/etc/php83/php-fpm.conf && \
|
||||
sed -i "s#user = nobody.*#user = abc#g" \
|
||||
/etc/php83/php-fpm.d/www.conf && \
|
||||
sed -i "s#group = nobody.*#group = abc#g" \
|
||||
/etc/php83/php-fpm.d/www.conf && \
|
||||
echo "**** Setup Logrotate ****" && \
|
||||
sed -i "s#/var/log/messages {}.*# #g" \
|
||||
/etc/logrotate.conf && \
|
||||
|
||||
Reference in New Issue
Block a user