diff --git a/docker/Dockerfile b/docker/Dockerfile index 5f416d6..563a875 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,9 +1,6 @@ # Dockerfile for the laravel.io application - FROM ubuntu:22.04 -ARG SEED_DATA="false" - RUN apt update # install system dependencies RUN apt install software-properties-common git -y @@ -34,14 +31,9 @@ RUN composer install RUN php artisan key:generate -# seed data if build arg is provided -RUN if [ "$SEED_DATA" = true ]; then php artisan migrate --seed; fi - RUN npm install RUN npm run build #Open on port 8000 to all addresses -# COPY entrypoint.sh . -# RUN chmod +x entrypoint.sh -ENTRYPOINT php artisan migrate --seed; php artisan serve --port=8000 --host=0.0.0.0 +ENTRYPOINT php artisan migrate; php artisan serve --port=8000 --host=0.0.0.0 EXPOSE 8000