docker: change the work directory to /var/www

This commit is contained in:
Zankaria
2024-03-31 15:41:02 +02:00
parent 482962844a
commit d55961995c
3 changed files with 16 additions and 17 deletions

View File

@@ -40,11 +40,10 @@ COPY --from=composer /usr/bin/composer /usr/bin/composer
COPY . /code
RUN /code/docker/common-setup.sh \
&& ln -s /code/composer.json /code/composer.lock /var/www-leftypol/ \
&& cd /var/www-leftypol && composer install
&& ln -s /code/composer.json /code/composer.lock /var/www/ \
&& cd /var/www && composer install
RUN /code/docker/common-setup.sh
WORKDIR "/var/www-leftypol"
# RUN /code/docker/common-setup.sh php
WORKDIR "/var/www"
CMD ["php-fpm"]
EXPOSE 9000