Skip to content

Instantly share code, notes, and snippets.

@paulodutra
Created March 22, 2022 17:49
Show Gist options
  • Save paulodutra/78fd01490c82bc513377fea2cfaac1cf to your computer and use it in GitHub Desktop.
Save paulodutra/78fd01490c82bc513377fea2cfaac1cf to your computer and use it in GitHub Desktop.
FROM php:7.4.8-fpm-alpine3.12
RUN apk add --no-cache shadow bash mysql-client
RUN docker-php-ext-install pdo pdo_mysql
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
WORKDIR /var/www
RUN rm -rf /var/www/html
RUN ln -s public html
RUN usermod -u 1000 www-data
USER www-data
EXPOSE 9000
ENTRYPOINT ["php-fpm"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment