docker fixed

This commit is contained in:
2026-05-20 23:49:19 +01:00
parent ad949474cd
commit b21b583c02
4 changed files with 6 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
Dockerfile
+3
View File
@@ -13,3 +13,6 @@ RUN pnpm run build
FROM ghcr.io/static-web-server/static-web-server:latest FROM ghcr.io/static-web-server/static-web-server:latest
WORKDIR / WORKDIR /
COPY --from=Builder /app/build /public COPY --from=Builder /app/build /public
# ENV SERVER_REDIRECT_TRAILING_SLASH=false
# ENTRYPOINT ["/static-web-server"]
CMD ["--redirect-trailing-slash", "true"]
+1 -1
View File
@@ -2,4 +2,4 @@ services:
website: website:
build: . build: .
ports: ports:
- "80:80" - "5127:80"
+1
View File
@@ -5,6 +5,7 @@ import { mdsvex } from "mdsvex";
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
base: '',
extensions: [".svelte", ".md"], extensions: [".svelte", ".md"],
emitCss: true, emitCss: true,
preprocess: [ preprocess: [