Fix: Remove dev files, add auto-migration entrypoint, update Dockerfile/README
All checks were successful
Docker Build & Push / build-and-push (push) Successful in 1m44s
All checks were successful
Docker Build & Push / build-and-push (push) Successful in 1m44s
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
# Install system dependencies and PHP extensions
|
||||
# mariadb-client added for auto-migration script
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libpng-dev \
|
||||
libjpeg-dev \
|
||||
libfreetype6-dev \
|
||||
zip \
|
||||
unzip \
|
||||
mariadb-client \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install -j$(nproc) gd mysqli pdo pdo_mysql \
|
||||
&& a2enmod rewrite
|
||||
@@ -24,5 +26,12 @@ COPY src/ /var/www/html/
|
||||
RUN chown -R www-data:www-data /var/www/html \
|
||||
&& chmod -R 755 /var/www/html
|
||||
|
||||
# Copy and setup entrypoint
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
# Expose port 80
|
||||
EXPOSE 80
|
||||
|
||||
# Set Entrypoint
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
Reference in New Issue
Block a user