Sign inSign up

anuragnandan/php81-mysql

By anuragnandan

•Updated about 4 years ago

PHP 8.1 with php-fpm, mysq pdo, intl

Image
0

272

anuragnandan/php81-mysql repository overview

FROM php:8.1.9-fpm

# Set working directory
WORKDIR /var/www

# Install dependencies
RUN apt-get update && apt-get install -y libicu-dev

# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

# Install extensions
RUN docker-php-ext-install pdo_mysql
RUN docker-php-ext-configure intl
RUN docker-php-ext-install intl

# Add user for laravel application
RUN groupadd -g 1000 www
RUN useradd -u 1000 -ms /bin/bash -g www www

USER www

# Expose port 9000 and start php-fpm server
EXPOSE 9000
CMD ["php-fpm"]

Tag summary

Content type

Image

Digest

sha256:e57d258fd…

Size

201.7 MB

Last updated

about 4 years ago

docker pull anuragnandan/php81-mysql