From e4287b20f076ef227f305453fb8aef5f16649d10 Mon Sep 17 00:00:00 2001 From: tiago Date: Tue, 31 Oct 2023 13:47:04 +0000 Subject: [PATCH] minor changes --- codebase/docker/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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