Fix LESS import error and refactor project structure
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -1,6 +1,5 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
# Установка расширений PHP
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libpq-dev \
|
||||
libzip-dev \
|
||||
@@ -9,26 +8,22 @@ RUN apt-get update && apt-get install -y \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Включаем mod_rewrite
|
||||
RUN a2enmod rewrite
|
||||
RUN a2enmod rewrite headers expires
|
||||
|
||||
# Копируем конфигурацию Apache
|
||||
COPY docker/apache/vhosts.conf /etc/apache2/sites-available/vhosts.conf
|
||||
COPY docker/apache/vhosts.conf /etc/apache2/sites-available/000-default.conf
|
||||
COPY docker/apache/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
# Рабочая директория
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# Копируем приложение
|
||||
COPY . /var/www/html/
|
||||
|
||||
# Устанавливаем права
|
||||
RUN chown -R www-data:www-data /var/www/html
|
||||
RUN mkdir -p /var/www/html/storage/uploads \
|
||||
&& mkdir -p /var/www/html/public/assets/css
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/html \
|
||||
&& chmod -R 755 /var/www/html/storage
|
||||
|
||||
# Экспортируем порт
|
||||
EXPOSE 80
|
||||
|
||||
# Точка входа
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user