Files
api-extranetwork/Dockerfile
ExtraNetwork 43f1ca84a4
Some checks failed
continuous-integration/drone/push Build is failing
fix: use COPY vhost.conf for Apache config instead of heredoc
2026-05-13 10:16:58 +03:00

54 lines
1.5 KiB
Docker
Raw 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.3-apache-buster
# Debian Buster EOL olduğu için repo adreslerini archive'a taşıyoruz
RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list \
&& sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list \
&& sed -i '/buster-updates/d' /etc/apt/sources.list \
&& apt-get update
# Sistem paketleri + PHP extension kurulumu
RUN apt-get install -y --no-install-recommends \
git \
unzip \
zip \
nano \
curl \
libzip-dev \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
libxml2-dev \
zlib1g-dev \
libonig-dev \
&& docker-php-ext-configure gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install \
pdo \
pdo_mysql \
gd \
zip \
mbstring \
exif \
&& rm -rf /var/lib/apt/lists/*
# Composer 2.2 kurulumu - PHP 7.3 için güvenli sürüm
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php --2.2 --install-dir=/usr/local/bin --filename=composer \
&& php -r "unlink('composer-setup.php');"
# Apache modları
RUN a2enmod rewrite
# Apache VirtualHost ayarı
COPY vhost.conf /etc/apache2/sites-available/000-default.conf
# Upload klasörü
RUN mkdir -p /home/uploads \
&& chown -R www-data:www-data /home/uploads \
&& chmod -R 775 /home/uploads
WORKDIR /var/www/html
CMD ["apache2-foreground"]