Compose для дев/прод окружений

This commit is contained in:
2024-09-15 18:01:28 +08:00
parent f0cfe4eda7
commit 2d5b9be5a0
8 changed files with 43 additions and 21 deletions

View File

@@ -0,0 +1,12 @@
FROM php:8.2-fpm
RUN apt update && \
apt upgrade -y && \
apt install -y git
COPY --from=composer /usr/bin/composer /usr/local/bin/composer
EXPOSE 9000
WORKDIR /var/www
CMD composer install
ENTRYPOINT php-fpm