Atualizar Dockerfile

This commit is contained in:
2025-06-11 00:54:45 +00:00
parent e165c3586a
commit 12dacfac65

View File

@@ -30,14 +30,10 @@ RUN echo "DirectoryIndex login.php index.php" > /etc/apache2/conf-available/dire
# Copia os arquivos da aplicação empacotada
COPY app.zip /var/www/html/
RUN unzip -o app.zip && rm app.zip
RUN unzip -o app.zip -d /var/www/html && rm app.zip
COPY files.zip /var/www/html/
RUN unzip -o && rm files.zip
# Copia e descompacta os arquivos auxiliares
#COPY files.zip /data/coolify/sgq/files/
#RUN cd /data/coolify/sgq/files && unzip -o files.zip && rm files.zip
# Cria um link simbólico para os arquivos montados externamente
RUN ln -s /data/coolify/sgq/files /var/www/html/files
# Ajusta permissões
RUN chown -R www-data:www-data /var/www/html