mirror of
https://github.com/bitinflow/laravel-docker-k8s.git
synced 2026-03-17 15:35:52 +00:00
initial commit
This commit is contained in:
31
Dockerfile
Executable file
31
Dockerfile
Executable file
@@ -0,0 +1,31 @@
|
||||
FROM php:7.0-fpm
|
||||
|
||||
RUN docker-php-ext-install pdo_mysql
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libmcrypt-dev \
|
||||
&& docker-php-ext-install -j$(nproc) mcrypt \
|
||||
&& docker-php-ext-install -j$(nproc) pdo
|
||||
|
||||
RUN apt-get install -y nginx supervisor && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY . /var/www/html
|
||||
WORKDIR /var/www/html
|
||||
|
||||
RUN rm /etc/nginx/sites-enabled/default
|
||||
|
||||
COPY /docker/nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
ADD https://getcomposer.org/download/1.6.2/composer.phar /usr/bin/composer
|
||||
RUN chmod +rx /usr/bin/composer
|
||||
|
||||
RUN composer install
|
||||
|
||||
RUN cp .env.example .env
|
||||
RUN php artisan key:generate
|
||||
|
||||
RUN chmod +x ./entrypoint
|
||||
|
||||
ENTRYPOINT ["./entrypoint"]
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user