الملفات
Tabeley-v0.0a/Dockerfile
Abdul Kareem 5764dd03e4
فشلت بعض الفحوصات
Deploy Backend / deploy (push) Has been cancelled
backend: align API/models with current PostgreSQL schema
2026-02-19 19:43:11 +03:00

40 أسطر
883 B
Docker

FROM php:8.2-cli
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
libpng-dev \
libonig-dev \
libxml2-dev \
zip \
unzip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install PHP extensions
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
# Install composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Set working directory
WORKDIR /var/www
# Copy existing application directory contents
COPY . /var/www
# Install dependencies
RUN composer install --no-interaction --no-dev --optimize-autoloader
# Set permissions
RUN chown -R www-data:www-data /var/www \
&& chmod -R 755 /var/www/storage \
&& chmod -R 755 /var/www/bootstrap/cache
# Expose port 8000
EXPOSE 8000
# Start Laravel development server
CMD php artisan serve --host=0.0.0.0 --port=8000