Update Dockerfile
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
FROM webdevops/php-nginx:8.2-alpine
|
||||
|
||||
ENV WEB_DOCUMENT_ROOT=/app
|
||||
|
||||
COPY ["Profice WebSite/", "/app/"]
|
||||
|
||||
RUN echo 'location / { \
|
||||
if ($request_uri ~ ^/(.*)\.html$) { \
|
||||
return 301 /$1; \
|
||||
} \
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user