Skip to content

Commit

Permalink
Merge pull request #17 from PHPRio/fix/workdir
Browse files Browse the repository at this point in the history
Executa comandos a partir da pasta do projeto
  • Loading branch information
giovannism20 authored Dec 19, 2023
2 parents ba3ec26 + 9896528 commit c5cd641
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ RUN echo "alias jigsaw=./vendor/bin/jigsaw" >> ~/.bashrc && \

COPY entrypoint.sh /var/www/scripts/
ENTRYPOINT [ "bash", "/var/www/scripts/entrypoint.sh" ]
WORKDIR /var/www/html
5 changes: 3 additions & 2 deletions .docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
usermod --non-unique --uid "${HOST_UID}" www-data
groupmod --non-unique --gid "${HOST_GID}" www-data

if [ ! -d "vendor" ] then

if [ ! -d "vendor" ]; then
composer install
fi

php /var/www/html/vendor/bin/jigsaw serve --host=0.0.0.0
./vendor/bin/jigsaw serve --host=0.0.0.0

0 comments on commit c5cd641

Please sign in to comment.