Atualizar Dockerfile
This commit is contained in:
28
Dockerfile
28
Dockerfile
@@ -1,32 +1,24 @@
|
||||
FROM php:8.1-apache
|
||||
|
||||
ENV TZ=America/Sao_Paulo
|
||||
|
||||
RUN a2enmod rewrite
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libicu-dev \
|
||||
libzip-dev \
|
||||
libjpeg-dev \
|
||||
libpng-dev \
|
||||
libfreetype6-dev \
|
||||
unzip \
|
||||
git \
|
||||
zip \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install intl zip pdo pdo_mysql mbstring gd \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
unzip git zip && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=mlocati/php-extension-installer:latest \
|
||||
/usr/bin/install-php-extensions /usr/local/bin/
|
||||
|
||||
RUN a2enmod rewrite && \
|
||||
install-php-extensions gd intl pdo_mysql zip
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
RUN echo "DirectoryIndex login.php index.php" > /etc/apache2/conf-available/directoryindex.conf && \
|
||||
RUN echo "DirectoryIndex login.php index.php" \
|
||||
> /etc/apache2/conf-available/directoryindex.conf && \
|
||||
a2enconf directoryindex
|
||||
|
||||
COPY app.zip /var/www/html/
|
||||
RUN unzip -o app.zip && rm app.zip
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["apache2-foreground"]
|
||||
|
||||
Reference in New Issue
Block a user