Skip to content

Instantly share code, notes, and snippets.

@behroozam
Last active May 10, 2019 08:08
Show Gist options
  • Save behroozam/20bd8fadfcfaec6713e5533ddc101ffb to your computer and use it in GitHub Desktop.
Save behroozam/20bd8fadfcfaec6713e5533ddc101ffb to your computer and use it in GitHub Desktop.
k8s laravel Dockerfile
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/
#!/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