Add project files

This commit is contained in:
infosave2007
2025-11-07 13:34:06 +03:00
parent 3402b19f2c
commit a33af60f2d
41 changed files with 8128 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
FROM php:8.2-apache
# Install dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
libpng-dev \
libonig-dev \
libxml2-dev \
zip \
unzip \
sshpass \
openssh-client \
qrencode \
&& docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd \
&& a2enmod rewrite \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Set working directory
WORKDIR /var/www/html
# Copy project files
COPY . /var/www/html
# Install PHP dependencies
RUN composer install --no-dev --optimize-autoloader
# Configure Apache
COPY apache.conf /etc/apache2/sites-available/000-default.conf
# Set permissions
RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html/public
# Expose port 80
EXPOSE 80
CMD ["apache2-foreground"]