From 1b77eba4c25bbd29de03a23073dcf10654fe2409 Mon Sep 17 00:00:00 2001 From: George Vlahavas Date: Fri, 26 Mar 2021 02:32:59 +0200 Subject: [PATCH] Add PHP configuration in container That removes the need for having another mounted volume only for that. --- api/Dockerfile | 3 +++ docker-compose-jfrog.yml | 1 - docker-compose.yml | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 7a86b7d..c5e8c62 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -42,6 +42,9 @@ COPY . /var/www # Copy existing application directory permissions COPY --chown=www:www . /var/www +# Copy PHP configuration +COPY ./api/php/local.ini /usr/local/etc/php/conf.d/local.ini + # Change current user to www USER www diff --git a/docker-compose-jfrog.yml b/docker-compose-jfrog.yml index dbaaf05..be35801 100644 --- a/docker-compose-jfrog.yml +++ b/docker-compose-jfrog.yml @@ -79,7 +79,6 @@ services: working_dir: /var/www volumes: - ./api:/var/www - - ./api/php/local.ini:/usr/local/etc/php/conf.d/local.ini #OD od: diff --git a/docker-compose.yml b/docker-compose.yml index 2d0fd59..62951ce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -93,7 +93,6 @@ services: working_dir: /var/www volumes: - ./api:/var/www - - ./api/php/local.ini:/usr/local/etc/php/conf.d/local.ini #OD od: -- 2.2.2