Dockerfile
FROM php:8.0-fpm
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
vim
# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Install Redis
RUN pecl install -o -f redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer