Update Dockerfile
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -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
|
||||
Reference in New Issue
Block a user