Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM php:8.1-fpm
- RUN apt-get update && \
- apt-get install -y zip curl libcurl3-dev libzip-dev libpng-dev libonig-dev libxml2-dev git
- RUN docker-php-ext-install curl gd mbstring pdo pdo_mysql xml mysqli
- RUN apt-get install -y libmagickwand-dev && \
- pecl install imagick && \
- docker-php-ext-enable imagick && \
- apt-get purge -y libmagickwand-dev
- RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- # Create the uploads directory and set permissions
- RUN mkdir -p /var/www/html/uploads && \
- chown -R www-data:www-data /var/www/html/uploads && \
- chmod -R 777 /var/www/html/uploads
- # Copy your application files
- COPY . /var/www/html
- # Ensure the ownership and permissions are correct for the entire application directory
- RUN chown -R www-data:www-data /var/www/html && \
- chmod -R 777 /var/www/html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement