Skip to content

Commit

Permalink
Add redirect from root
Browse files Browse the repository at this point in the history
  • Loading branch information
mrauhala committed Jan 7, 2024
1 parent 9bed7a2 commit e66d929
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 2.24/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ RUN sed -i '\:</web-app>:i \

RUN chmod -R g=u /etc/passwd /var/log

COPY <<-EOT $CATALINA_HOME/webapps/ROOT/index.jsp
<%
final String redirectURL = "/geoserver/web/";
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.setHeader("Location", redirectURL);
%>
EOT

COPY docker-entrypoint.sh first-run-config.sh /

### Containers should NOT run as root as a good practice
Expand Down

0 comments on commit e66d929

Please sign in to comment.