add magic ai features

This commit is contained in:
lubiana 2025-07-03 23:58:36 +02:00
parent 137e4bc0c1
commit 8603e15c8f
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
17 changed files with 3977 additions and 1 deletions

View file

@ -1,3 +1,11 @@
FROM node:20 AS frontend_builder
WORKDIR /app/uuid-browser-2-app
COPY uuid-browser-2-app/package.json uuid-browser-2-app/package-lock.json ./
RUN npm ci
COPY uuid-browser-2-app/ ./
RUN npm run build
FROM composer:2 as composer_builder
WORKDIR /app
COPY composer.json composer.lock ./
@ -8,6 +16,11 @@ WORKDIR /app
COPY public/ ./public
COPY src/ ./src
COPY --from=composer_builder /app/vendor ./vendor
# Copy built frontend
RUN mkdir -p ./public/ai
RUN mkdir -p ./public/assets
COPY --from=frontend_builder /app/uuid-browser-2-app/dist ./public/ai
RUN mv ./public/ai/assets ./public
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN sed -i 's/^\s*expose_php\s*=.*/expose_php = Off/' "$PHP_INI_DIR/php.ini"