Enviar arquivos para "/"
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
# Utilitários + extensões PHP
|
||||
RUN apt-get update && apt-get install -y unzip \
|
||||
&& docker-php-ext-install pdo pdo_mysql \
|
||||
&& a2enmod rewrite \
|
||||
&& sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copia e extrai o zip na raiz do Apache
|
||||
COPY app.zip /tmp/app.zip
|
||||
RUN unzip /tmp/app.zip -d /var/www/html/ \
|
||||
&& rm /tmp/app.zip
|
||||
|
||||
# Permissões
|
||||
RUN mkdir -p /var/www/html/uploads \
|
||||
&& chown -R www-data:www-data /var/www/html \
|
||||
&& chmod 755 /var/www/html/uploads
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user