File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ COPY /resources/ /app/resources/
1212# Build using Vite.js
1313RUN npm run build
1414
15+ # Final Image
1516FROM nginx:1-alpine
1617
1718WORKDIR /app/public
Original file line number Diff line number Diff line change 11# Composer installation
22FROM php:8.2-fpm AS composer
3-
43WORKDIR /app
5-
4+ # # Install Composer
65COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
76RUN install-php-extensions @composer
8-
7+ # # Install dependencies
98COPY / /app
109RUN composer install --optimize-autoloader --no-dev
1110
1211# Vite.js build
1312FROM node:lts-alpine AS node
14-
1513WORKDIR /app
16-
17- # Cache layer for "npm ci"
14+ # # Cache layer for "npm ci"
1815COPY /package.json /package-lock.json /app/
1916RUN npm ci
20- # Copy JavaScript
17+ # # Copy JavaScript
2118COPY /vite.config.js /app/
2219COPY /resources/ /app/resources/
23- # Build using Vite.js
20+ # # Build using Vite.js
2421RUN npm run build
2522
2623# Final Image
@@ -32,7 +29,7 @@ RUN install-php-extensions bcmath pdo_pgsql redis
3229WORKDIR /app
3330
3431COPY / /app
35- COPY --from=node /app/public/build /app/public/build/
32+ COPY --from=node /app/public/build/ /app/public/build/
3633COPY --from=composer /app/vendor/ /app/vendor/
3734
3835RUN chown --recursive www-data:www-data /app/storage
You can’t perform that action at this time.
0 commit comments