2024-11-11 23:43:17 +01:00
|
|
|
FROM composer:2.7.9 as composer
|
2022-06-10 02:00:46 +02:00
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
RUN composer install --ignore-platform-reqs --no-dev
|
|
|
|
|
2024-07-18 00:59:15 +02:00
|
|
|
FROM node:20.15.0-slim as node
|
2022-06-10 02:00:46 +02:00
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
2024-07-21 16:09:41 +02:00
|
|
|
RUN npm install && npm run prod && npm run img && rm -R node_modules
|
2022-06-10 02:00:46 +02:00
|
|
|
|
2023-08-15 16:42:15 +02:00
|
|
|
FROM zoomyboy/adrema-base:latest as php
|
2022-06-10 02:00:46 +02:00
|
|
|
COPY --chown=www-data:www-data . /app
|
|
|
|
COPY --chown=www-data:www-data --from=node /app/public /app/public
|
|
|
|
COPY --chown=www-data:www-data --from=composer /app/vendor /app/vendor
|
2023-07-20 22:58:51 +02:00
|
|
|
|
2023-07-21 11:28:45 +02:00
|
|
|
USER www-data
|
|
|
|
RUN php artisan telescope:publish
|
|
|
|
RUN php artisan horizon:publish
|
|
|
|
|
|
|
|
USER root
|
2023-07-24 17:34:38 +02:00
|
|
|
COPY ./.docker/php /bin
|
2023-07-20 22:58:51 +02:00
|
|
|
|
2024-07-17 23:18:25 +02:00
|
|
|
VOLUME ["/app/packages/laravel-nami/.cookies", "/app/storage/app", "/app/resources/views/tex/invoice"]
|
2023-07-20 23:19:59 +02:00
|
|
|
|
2022-06-10 02:00:46 +02:00
|
|
|
EXPOSE 9000
|
2022-11-22 14:39:13 +01:00
|
|
|
|
2023-07-20 22:58:51 +02:00
|
|
|
CMD /bin/php-entrypoint
|