diff --git a/dockerfile b/dockerfile index 392a3cb..a6d84dc 100644 --- a/dockerfile +++ b/dockerfile @@ -12,6 +12,9 @@ COPY . . RUN composer install --no-dev --optimize-autoloader +ARG APP_VERSION=Dev +ENV VITE_APP_VERSION=$APP_VERSION + RUN npm install && npm run build && rm -f public/hot COPY docker/nginx.conf /etc/nginx/nginx.conf diff --git a/resources/js/Components/FlightsGoneBy/MainFooter.vue b/resources/js/Components/FlightsGoneBy/MainFooter.vue index b84775a..7a77b2f 100644 --- a/resources/js/Components/FlightsGoneBy/MainFooter.vue +++ b/resources/js/Components/FlightsGoneBy/MainFooter.vue @@ -4,12 +4,14 @@ import { SharedProps } from "@/Types/types" const page = usePage().props const year = new Date().getFullYear() +const version = __APP_VERSION__