From ff20c4d28d9678114975b6fe932f87bfe3789e57 Mon Sep 17 00:00:00 2001 From: "Alex. Plokhikh" Date: Wed, 17 Apr 2024 12:18:51 +0500 Subject: [PATCH 1/5] create Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ab10088 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM php:alpine + +VOLUME ./:./app + +WORKDIR app + +COPY . . + +ENV COMPOSER_ALLOW_SUPERUSER=1 +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer +RUN composer install + +CMD ["php"] \ No newline at end of file -- GitLab From 4fc6bc897508832227980f9182f34655c350688f Mon Sep 17 00:00:00 2001 From: "Alex. Plokhikh" Date: Wed, 17 Apr 2024 12:21:21 +0500 Subject: [PATCH 2/5] - --- Dockerfile | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index ab10088..e69de29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +0,0 @@ -FROM php:alpine - -VOLUME ./:./app - -WORKDIR app - -COPY . . - -ENV COMPOSER_ALLOW_SUPERUSER=1 -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -RUN composer install - -CMD ["php"] \ No newline at end of file -- GitLab From 6d2f7e14c1f3b9c286ca92f7958c702ef6be85cf Mon Sep 17 00:00:00 2001 From: "Alex. Plokhikh" Date: Wed, 17 Apr 2024 12:21:57 +0500 Subject: [PATCH 3/5] remake Dokerfile --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Dockerfile b/Dockerfile index e69de29..d774d50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM php:alpine + +VOLUME ./:./app + +WORKDIR app + +COPY . . + + +ENV COMPOSER_ALLOW_SUPERUSER=1 +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer +RUN composer install + +CMD ["php"] \ No newline at end of file -- GitLab From ebd4d3b7a2c242a810e6877d4f848d92934defbb Mon Sep 17 00:00:00 2001 From: "Alex. Plokhikh" Date: Wed, 17 Apr 2024 13:51:05 +0500 Subject: [PATCH 4/5] STA-928|add PDO-postgress, add fmp ver php, rm volume --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d774d50..026bdee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ -FROM php:alpine - -VOLUME ./:./app +FROM php:fpm-alpine WORKDIR app COPY . . +RUN apk update && \ + apk add libpq-dev && \ + docker-php-ext-install pdo pdo_pgsql pgsql ENV COMPOSER_ALLOW_SUPERUSER=1 RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -- GitLab From 8e4f7adc3601234c009673ef650fe277ef500131 Mon Sep 17 00:00:00 2001 From: "Alex. Plokhikh" Date: Wed, 17 Apr 2024 15:25:46 +0500 Subject: [PATCH 5/5] change php to php-fpm --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 026bdee..a955dc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,4 +12,4 @@ ENV COMPOSER_ALLOW_SUPERUSER=1 RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer RUN composer install -CMD ["php"] \ No newline at end of file +CMD ["php-fpm"] \ No newline at end of file -- GitLab