feat: build assets
CI / 🧪 Tests Laravel (push) Successful in 2m2s
CI / 🐳 Build & Push Image (push) Successful in 21s

This commit is contained in:
2026-07-16 17:05:00 +02:00
parent 573718b38f
commit 99cb0e63e6
3 changed files with 24 additions and 1 deletions
+1
View File
@@ -7,3 +7,4 @@ storage/framework/cache/data
.env .env
.env.* .env.*
public/storage public/storage
public/build
+19 -1
View File
@@ -1,4 +1,4 @@
FROM dunglas/frankenphp:php8.4-alpine FROM dunglas/frankenphp:php8.4-alpine AS php
WORKDIR /app WORKDIR /app
@@ -31,6 +31,24 @@ COPY . .
RUN composer dump-autoload --optimize 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 \ RUN mkdir -p \
storage/app/public \ storage/app/public \
+4
View File
@@ -56,6 +56,8 @@ services:
horizon: horizon:
<<: *app-service <<: *app-service
container_name: daily-meal-api-horizon container_name: daily-meal-api-horizon
healthcheck:
disable: true
depends_on: depends_on:
app: app:
condition: service_healthy condition: service_healthy
@@ -64,6 +66,8 @@ services:
scheduler: scheduler:
<<: *app-service <<: *app-service
container_name: daily-meal-api-scheduler container_name: daily-meal-api-scheduler
healthcheck:
disable: true
depends_on: depends_on:
app: app:
condition: service_healthy condition: service_healthy