actual actual
All checks were successful
Build and Push Docker Container / build-and-push (push) Successful in 36s

This commit is contained in:
2025-03-27 00:12:19 +01:00
parent f02fc536f2
commit 20d826236c
2 changed files with 2 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ WORKDIR /app
COPY --from=builder /app/main . COPY --from=builder /app/main .
COPY --from=builder /goose.git/goose . COPY --from=builder /goose.git/goose .
COPY ./src/migrations ./migrations COPY ./src/migrations ./migrations
COPY ./src/web ./web
EXPOSE 8080 EXPOSE 8080

View File

@@ -35,7 +35,7 @@ func (app *App) Routes() http.Handler {
mux.Handle("GET /article/{id}", http.HandlerFunc(app.Article)) mux.Handle("GET /article/{id}", http.HandlerFunc(app.Article))
// serve files from the "static" directory // 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 return mux
} }