Changement de répertoire.
This commit is contained in:
parent
48be49ecc1
commit
1161992205
@ -1,7 +1,7 @@
|
|||||||
FROM php:8.1-apache-buster
|
FROM php:8.1-apache-buster
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /var/www
|
WORKDIR /app
|
||||||
|
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
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/*
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
# Copy source code
|
# Copy source code
|
||||||
COPY . /var/www
|
COPY . /app
|
||||||
|
|
||||||
# Install php dependencies
|
# Install php dependencies
|
||||||
RUN composer install --quiet --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
|
RUN composer install --quiet --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
DocumentRoot /var/www/public
|
DocumentRoot /app/public
|
||||||
|
|
||||||
<Directory "/var/www">
|
<Directory "/app">
|
||||||
AllowOverride all
|
AllowOverride all
|
||||||
Require all granted
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user