- FROM ubuntu:22.04
- ARG DEBIAN_FRONTEND=noninteractive
- USER root
- WORKDIR /app
- COPY . /app
- RUN apt update
- RUN apt upgrade -y
- RUN apt install php php-mbstring php-xml php-pdo php-mysql php-xdebug -y
- RUN apt install curl -y
- RUN cd /tmp
- RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- CMD php artisan serve --host=0.0.0.0 --port=8181
- EXPOSE 8181
|