update
This commit is contained in:
@@ -3,6 +3,7 @@ FROM php:5.6-fpm-alpine
|
|||||||
|
|
||||||
# Install system dependencies and PHP extensions
|
# Install system dependencies and PHP extensions
|
||||||
RUN apk --update --no-cache add \
|
RUN apk --update --no-cache add \
|
||||||
|
nginx \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
libjpeg-turbo-dev \
|
libjpeg-turbo-dev \
|
||||||
freetype-dev \
|
freetype-dev \
|
||||||
@@ -13,9 +14,14 @@ RUN apk --update --no-cache add \
|
|||||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||||
&& docker-php-ext-install gd pdo pdo_mysql zip mcrypt
|
&& docker-php-ext-install gd pdo pdo_mysql zip mcrypt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
|
# Copy Nginx config
|
||||||
|
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Copy the Laravel application files to the container
|
# Copy the Laravel application files to the container
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
@@ -28,6 +34,9 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
|
|||||||
# Install Laravel dependencies
|
# Install Laravel dependencies
|
||||||
RUN composer install
|
RUN composer install
|
||||||
|
|
||||||
|
# Generate Laravel application key
|
||||||
|
RUN php artisan key:generate
|
||||||
|
|
||||||
# Expose port 9000 for PHP-FPM
|
# Expose port 9000 for PHP-FPM
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user