This commit is contained in:
franknstayn
2023-08-30 01:03:25 +08:00
parent b9d395f7b4
commit af1e3e0651
3 changed files with 13 additions and 4 deletions

View File

@@ -14,8 +14,6 @@ RUN apk --update --no-cache add \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd pdo pdo_mysql zip mcrypt
# Set the working directory in the container
WORKDIR /var/www/html
@@ -40,10 +38,12 @@ RUN composer install
# Generate Laravel application key
RUN php artisan key:generate
# Copy the www.conf file to PHP-FPM pool.d directory
COPY www.conf /usr/local/etc/php-fpm.d/www.conf
# Expose port 9000 for PHP-FPM
EXPOSE 80
EXPOSE 9001
# Start PHP-FPM
ENTRYPOINT ["/etc/entrypoint.sh"]