Files
xciptv/Dockerfile

16 lines
560 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM php:7.4-apache
# Tüm dosyaları sunucuya kopyala
COPY . /var/www/html/
# Klasör izinlerini ayarla
RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html
# Apache Portunu 3000 yap (Coolify Varsayılanı)
# ve yalnızca /var/www/ dizini için AllowOverride'i All yap
RUN a2enmod rewrite \
&& sed -i 's/80/3000/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf \
&& sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
EXPOSE 3000