أُنشئ من Tokal/Test
هذا الالتزام موجود في:
14
Dockerfile
14
Dockerfile
@@ -1,6 +1,5 @@
|
|||||||
FROM php:8.2-fpm
|
FROM php:8.2-cli
|
||||||
|
|
||||||
# Install system dependencies
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
@@ -10,24 +9,17 @@ RUN apt-get update && apt-get install -y \
|
|||||||
zip \
|
zip \
|
||||||
unzip
|
unzip
|
||||||
|
|
||||||
# Install PHP extensions
|
|
||||||
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
|
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
|
||||||
|
|
||||||
# Install composer
|
|
||||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||||
|
|
||||||
# Set working directory
|
|
||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
|
|
||||||
# Copy existing application directory contents
|
COPY . .
|
||||||
COPY . /var/www
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN composer install --no-interaction --no-dev --optimize-autoloader
|
RUN composer install --no-interaction --no-dev --optimize-autoloader
|
||||||
|
|
||||||
# Set permissions
|
|
||||||
RUN chown -R www-data:www-data /var/www \
|
RUN chown -R www-data:www-data /var/www \
|
||||||
&& chmod -R 755 /var/www/storage
|
&& chmod -R 755 /var/www/storage
|
||||||
|
|
||||||
EXPOSE 8000
|
CMD php artisan serve --host=0.0.0.0 --port=${PORT}
|
||||||
CMD php artisan serve --host=0.0.0.0 --port=8000
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم