Skip to content

Commit

Permalink
Ensure that the docroot always goes to /latest
Browse files Browse the repository at this point in the history
  • Loading branch information
mvriel committed Jan 12, 2020
1 parent 964aa0b commit 18e32ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/.static/redirectToLatest.html
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Please wait ..</title>
<meta http-equiv="refresh" content="0; url = ./latest" />
</head>
<body>
</body>
</html>
1 change: 1 addition & 0 deletions docs/Dockerfile
Expand Up @@ -20,5 +20,6 @@ RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log

COPY --from=build /data/html /usr/share/nginx/html/$VERSION
COPY .static/redirectToLatest.html /usr/share/nginx/html/index.html

STOPSIGNAL SIGQUIT

0 comments on commit 18e32ad

Please sign in to comment.