add lightweight Dockerfile for Coolify

This commit is contained in:
Anderi Saputra
2026-06-10 18:33:54 +07:00
parent 068be7dc52
commit 37a94c8080
3 changed files with 15 additions and 12 deletions
+4 -7
View File
@@ -1,17 +1,14 @@
FROM php:8.3-apache
# Install mysqli extension required for database connections
RUN docker-php-ext-install mysqli \
&& docker-php-ext-enable mysqli
&& a2enmod rewrite \
&& printf "ServerName localhost\n" > /etc/apache2/conf-available/servername.conf \
&& a2enconf servername
# Enable Apache mod_rewrite for routing if needed
RUN a2enmod rewrite
WORKDIR /var/www/html
# Copy project files to the web server root
COPY . /var/www/html/
# Set correct ownership for Apache
RUN chown -R www-data:www-data /var/www/html
# Expose port 80
EXPOSE 80