Last active
May 10, 2019 08:08
-
-
Save behroozam/20bd8fadfcfaec6713e5533ddc101ffb to your computer and use it in GitHub Desktop.
k8s laravel Dockerfile
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.2-fpm | |
RUN apt-get update && apt-get install -y \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libpng-dev \ | |
&& docker-php-ext-install -j$(nproc) iconv pdo pdo_mysql\ | |
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | |
&& docker-php-ext-install -j$(nproc) gd | |
COPY fix-permission /bin/ | |
WORKDIR /var/www/html/ |
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
#!/bin/sh | |
find /var/www/html -exec chown -R nobody:www-data {} \; && find /var/www/html -type f -exec chmod 664 {} \; && find /var/www/html -type d -exec chmod 775 {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment