diff --git a/codebase/docker/Dockerfile b/codebase/docker/Dockerfile index 584cccc..64e3ac9 100644 --- a/codebase/docker/Dockerfile +++ b/codebase/docker/Dockerfile @@ -1,8 +1,9 @@ # Dockerfile for the laravel.io application -ARG SEED_DATA=false FROM ubuntu:22.04 +ARG SEED_DATA="false" + RUN apt update # install system dependencies RUN apt install software-properties-common git -y @@ -11,6 +12,8 @@ RUN git clone https://github.com/laravelio/laravel.io.git /app/laravel WORKDIR /app/laravel +RUN mv .env.example .env + # add php apt repo RUN add-apt-repository ppa:ondrej/php @@ -27,11 +30,10 @@ ENV DB_PASSWORD=password RUN composer install -RUN mv .env.example .env RUN php artisan key:generate # seed data if build arg is provided -RUN if [ $SEED_DATA = true ]; then php artisan migrate --seed; fi +RUN if [ "$SEED_DATA" = true ]; then php artisan migrate --seed; fi RUN npm install RUN npm run build