From 6b94757760999baaea4d830558bba68ca80b4efe Mon Sep 17 00:00:00 2001 From: Hion-V Date: Tue, 15 Nov 2022 12:13:01 +0100 Subject: [PATCH] Made changes to make the dev environment work --- docker-compose.yml | 4 ++-- php/Dockerfile | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7f919b1..056cea6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,5 +42,5 @@ services: - 9000 - 80 - 443 - # volumes: - # - ./WebsiteAPI:/var/www/html + volumes: + - ./php/WebsiteAPI:/var/www/html diff --git a/php/Dockerfile b/php/Dockerfile index f7f9d9d..a5386b3 100644 --- a/php/Dockerfile +++ b/php/Dockerfile @@ -33,9 +33,7 @@ WORKDIR /var/www/html USER $user -COPY ./WebsiteAPI /var/www/html/ +# COPY ./WebsiteAPI /var/www/html/ +COPY ./entrypoint.sh /var/www/entrypoint.sh -RUN composer install -RUN composer update - -CMD ["php","artisan","serve","--port=9000","--host=0.0.0.0"] \ No newline at end of file +CMD ["/var/www/entrypoint.sh"] \ No newline at end of file