add Dockerfile to bypass Nixpacks OOM

This commit is contained in:
Anderi Saputra
2026-06-10 18:04:01 +07:00
parent 46f02da04a
commit 068be7dc52
2 changed files with 23 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
.git
.gitignore
Dockerfile
.dockerignore
.env.example
README.md
+17
View File
@@ -0,0 +1,17 @@
FROM php:8.3-apache
# Install mysqli extension required for database connections
RUN docker-php-ext-install mysqli \
&& docker-php-ext-enable mysqli
# Enable Apache mod_rewrite for routing if needed
RUN a2enmod rewrite
# 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