Changement de répertoire.
This commit is contained in:
parent
48be49ecc1
commit
1161992205
@ -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
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<VirtualHost *:80>
|
||||
DocumentRoot /var/www/public
|
||||
DocumentRoot /app/public
|
||||
|
||||
<Directory "/var/www">
|
||||
<Directory "/app">
|
||||
AllowOverride all
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user