Compare commits
No commits in common. "devstack" and "master" have entirely different histories.
@ -32,7 +32,6 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
restart: always
|
||||
environment:
|
||||
- APP_PORT=8000
|
||||
- DB_HOST=db
|
||||
- DB_USERNAME=root
|
||||
ports:
|
||||
@ -43,5 +42,5 @@ services:
|
||||
- 9000
|
||||
- 80
|
||||
- 443
|
||||
volumes:
|
||||
- ./php/WebsiteAPI:/var/www/html
|
||||
# volumes:
|
||||
# - ./WebsiteAPI:/var/www/html
|
||||
|
||||
@ -33,7 +33,9 @@ WORKDIR /var/www/html
|
||||
|
||||
USER $user
|
||||
|
||||
# COPY ./WebsiteAPI /var/www/html/
|
||||
COPY ./entrypoint.sh /var/www/entrypoint.sh
|
||||
COPY ./WebsiteAPI /var/www/html/
|
||||
|
||||
CMD ["/var/www/entrypoint.sh"]
|
||||
RUN composer install
|
||||
RUN composer update
|
||||
|
||||
CMD ["php","artisan","serve","--port=9000","--host=0.0.0.0"]
|
||||
@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
composer install
|
||||
composer update
|
||||
php artisan migrate
|
||||
php artisan serve --port=$APP_PORT --host=0.0.0.0
|
||||
Loading…
x
Reference in New Issue
Block a user