Update Dockerfile

This commit is contained in:
2026-02-06 13:42:19 +00:00
parent e4541fe77c
commit 2ff3449538

View File

@@ -2,11 +2,17 @@ FROM webdevops/php-nginx:8.2-alpine
ENV WEB_DOCUMENT_ROOT=/app
# Копируем файлы
COPY ["Profice WebSite/", "/app/"]
RUN chown -R application:application /app \
&& chmod -R 755 /app
# Настраиваем Nginx:
# 1. Разрешаем index.html как главный файл
# 2. Включаем "красивые ссылки" (автоматически скрываем .html в адресе)
RUN echo 'location / { \
try_files $uri $uri/ $uri.html /index.php?$query_string; \
index index.html index.php; \
}' > /opt/docker/etc/nginx/vhost.common.d/10-location-root.conf
RUN ls -la /app
RUN chown -R application:application /app && chmod -R 755 /app
EXPOSE 80