feat: build assets
This commit is contained in:
+19
-1
@@ -1,4 +1,4 @@
|
||||
FROM dunglas/frankenphp:php8.4-alpine
|
||||
FROM dunglas/frankenphp:php8.4-alpine AS php
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -31,6 +31,24 @@ COPY . .
|
||||
RUN composer dump-autoload --optimize
|
||||
|
||||
|
||||
FROM node:22-alpine AS frontend
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
COPY --from=php /app/vendor ./vendor
|
||||
|
||||
RUN npm run build
|
||||
|
||||
|
||||
FROM php AS production
|
||||
|
||||
COPY --from=frontend /app/public/build ./public/build
|
||||
|
||||
|
||||
|
||||
RUN mkdir -p \
|
||||
storage/app/public \
|
||||
|
||||
Reference in New Issue
Block a user