27 lines
558 B
Docker
27 lines
558 B
Docker
FROM php:8.4-cli
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
curl \
|
|
libpng-dev \
|
|
libonig-dev \
|
|
libxml2-dev \
|
|
libzip-dev \
|
|
libicu-dev \
|
|
zip \
|
|
unzip \
|
|
procps \
|
|
net-tools \
|
|
netcat-openbsd \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd zip intl
|
|
RUN pecl install redis \
|
|
&& docker-php-ext-enable redis
|
|
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
|
|
WORKDIR /app
|
|
|
|
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=8000"]
|