Changement de répertoire.

This commit is contained in:
William 2022-07-01 16:16:02 +02:00
parent 48be49ecc1
commit 1161992205
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
FROM php:8.1-apache-buster
# Set working directory
WORKDIR /var/www
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
@ -38,7 +38,7 @@ RUN apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Copy source code
COPY . /var/www
COPY . /app
# Install php dependencies
RUN composer install --quiet --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist

View File

@ -1,7 +1,7 @@
<VirtualHost *:80>
DocumentRoot /var/www/public
DocumentRoot /app/public
<Directory "/var/www">
<Directory "/app">
AllowOverride all
Require all granted
</Directory>