Skip to content
Snippets Groups Projects
Commit 68b3e43b authored by Jens Sandmann's avatar Jens Sandmann
Browse files

Add Dockerfile

parent b90ee42a
Branches master
No related tags found
No related merge requests found
FROM php:7.4.11-apache
# php-gd modul für dw2pdf plugin
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd
# Upload-Limits hoch setzen (Edit by Parad0x)
RUN touch /usr/local/etc/php/conf.d/uploads.ini \
&& echo "upload_max_filesize = 10M;" >> /usr/local/etc/php/conf.d/uploads.ini \
&& echo "post_max_size = 10M;" >> /usr/local/etc/php/conf.d/uploads.ini
# Change apache settings
RUN a2enmod rewrite
# Expose ports
EXPOSE 80
# startup
CMD ["apache2-foreground"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment