fix entrypoint

This commit is contained in:
cherednik 2024-10-24 15:17:46 +04:00
parent f22707ffe2
commit e584fea171
1 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,9 @@ COPY ./backend /usr/src/signer
COPY ./docker/php/www.conf /etc/php/8.3/fpm/pool.d/www.conf COPY ./docker/php/www.conf /etc/php/8.3/fpm/pool.d/www.conf
RUN curl curl https://frankenphp.dev/install.sh | sh
RUN mv /usr/src/signer/frankenphp /usr/local/bin/
ENV COMPOSER_ALLOW_SUPERUSER=1 ENV COMPOSER_ALLOW_SUPERUSER=1
RUN composer install RUN composer install
RUN service php8.3-fpm start RUN service php8.3-fpm start
@ -72,5 +75,6 @@ COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ] ENTRYPOINT [ "/entrypoint.sh" ]
CMD ["php-fpm8.3", "-F"] CMD ["php-fpm8.3", "-F"]
CMD ["frankenphp php-server --listen 0.0.0.0:8000 ./public"]
EXPOSE 9000 EXPOSE 9000