From b21b583c026211b8db8ef90df07554ab10c6d569 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Wed, 20 May 2026 23:49:19 +0100 Subject: [PATCH] docker fixed --- .dockerignore | 1 + Dockerfile | 3 +++ compose.yaml | 2 +- svelte.config.ts | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9414382 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +Dockerfile diff --git a/Dockerfile b/Dockerfile index 6f72739..38258be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,3 +13,6 @@ RUN pnpm run build FROM ghcr.io/static-web-server/static-web-server:latest WORKDIR / COPY --from=Builder /app/build /public +# ENV SERVER_REDIRECT_TRAILING_SLASH=false +# ENTRYPOINT ["/static-web-server"] +CMD ["--redirect-trailing-slash", "true"] diff --git a/compose.yaml b/compose.yaml index 0ffa082..d095cc5 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,4 +2,4 @@ services: website: build: . ports: - - "80:80" + - "5127:80" diff --git a/svelte.config.ts b/svelte.config.ts index dd5b869..cb1b76c 100644 --- a/svelte.config.ts +++ b/svelte.config.ts @@ -5,6 +5,7 @@ import { mdsvex } from "mdsvex"; /** @type {import('@sveltejs/kit').Config} */ const config = { + base: '', extensions: [".svelte", ".md"], emitCss: true, preprocess: [