add magic ai features
This commit is contained in:
parent
137e4bc0c1
commit
8603e15c8f
17 changed files with 3977 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue