mod dockerfile

This commit is contained in:
Philipp Lang 2022-11-22 14:39:13 +01:00
parent 491192bd3e
commit 26c06f364b
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1,2 @@
node_modules node_modules
vendor

View File

@ -9,10 +9,11 @@ COPY . /app
RUN npm install && npm run prod && rm -R node_modules RUN npm install && npm run prod && rm -R node_modules
FROM php:8.1.6-fpm as php FROM php:8.1.6-fpm as php
RUN apt-get update && apt-get install -y libcurl3-dev apt-utils zlib1g-dev libpng-dev libicu-dev libonig-dev RUN apt-get update && apt-get install -y libcurl3-dev apt-utils zlib1g-dev libpng-dev libicu-dev libonig-dev texlive
RUN docker-php-ext-install pdo_mysql curl gd intl mbstring RUN docker-php-ext-install pdo_mysql curl gd intl mbstring
COPY --chown=www-data:www-data . /app 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=node /app/public /app/public
COPY --chown=www-data:www-data --from=composer /app/vendor /app/vendor COPY --chown=www-data:www-data --from=composer /app/vendor /app/vendor
EXPOSE 9000 EXPOSE 9000
CMD ["php-fpm", "-F", "-R", "-O"] CMD ["php-fpm", "-F", "-R", "-O"]