From 20d826236cf3b4016a6441ab0d0f49d9c6a1c97e Mon Sep 17 00:00:00 2001 From: Elias Kohout Date: Thu, 27 Mar 2025 00:12:19 +0100 Subject: [PATCH] actual actual --- Dockerfile | 1 + src/web/app/app.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9f8e342..5e73f5a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,7 @@ WORKDIR /app COPY --from=builder /app/main . COPY --from=builder /goose.git/goose . COPY ./src/migrations ./migrations +COPY ./src/web ./web EXPOSE 8080 diff --git a/src/web/app/app.go b/src/web/app/app.go index 75f05c7..79eb7f7 100644 --- a/src/web/app/app.go +++ b/src/web/app/app.go @@ -35,7 +35,7 @@ func (app *App) Routes() http.Handler { mux.Handle("GET /article/{id}", http.HandlerFunc(app.Article)) // serve files from the "static" directory - mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./web/static")))) + mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./web/static/")))) return mux }