From c66250a7f47b172c4250e8735b7a252eb6b939ed Mon Sep 17 00:00:00 2001 From: blumh <hermann.blum@mavt.ethz.ch> Date: Sat, 5 May 2018 08:39:56 +0200 Subject: [PATCH] Update Dockerfile with hotfix for direct links --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index cb91b06..0ef9009 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"] -- GitLab