FROM redhat/ubi8:latest
RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
RUN dnf update -y
RUN dnf -y module enable nodejs:20
RUN dnf -y install wget php83 php83-php-intl php83-php-zip php83-php-gd nodejs php83-php-mysql
RUN wget https://getcomposer.org/download/latest-stable/composer.phar -O composer
RUN chmod +x composer
RUN mv composer /usr/local/bin/composer
RUN ln -s /usr/bin/php83 /usr/bin/php
COPY app/ /var/www/html/app
WORKDIR /var/www/html/app
RUN composer install
RUN npm install
RUN npm run build
EXPOSE 8000
CMD ["php", "artisan", "serve","--host=0.0.0.0","--port=8000"]
No comments:
Post a Comment