Created
March 22, 2022 17:49
-
-
Save paulodutra/78fd01490c82bc513377fea2cfaac1cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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