diff --git a/Dockerfile b/Dockerfile index cb91b063882bbb534d0dd5976194ed12d92f6ed6..0ef90096a6d4f2eb29e7daa0a82508e2055371b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,5 +29,9 @@ RUN npm install --no-save http-server COPY --from=build /index.html /admintool/ COPY --from=build /dist /admintool/dist +# Serve index.html for every file which is not found on the server +# Hotfix for direct links +RUN ln index.html 404.html + # Run server (-g will automatically serve the gzipped files if possible) CMD ["/admintool/node_modules/.bin/http-server", "-g", "/admintool"]