fix 2
All checks were successful
release-tag / release-image (push) Successful in 2m58s

This commit is contained in:
2025-07-22 17:31:44 +02:00
parent 8ca6c6f062
commit 2e511e3fca
2 changed files with 3 additions and 3 deletions

View File

@@ -13,9 +13,9 @@ FROM alpine:3.20
# HTTPS-Callouts in Alpine brauchen ca-certificates
RUN apk add --no-cache ca-certificates
RUN mkdir /data
COPY --from=builder /bin/sctradingtool /bin/sctradingtool
COPY ./static /bin/static
COPY ./static /data/static
# Default listens on :8080 siehe main.go
EXPOSE 8080

View File

@@ -90,7 +90,7 @@ func main() {
createTable(db)
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("/data/static"))))
http.HandleFunc("/login", func(w http.ResponseWriter, r *http.Request) {
if r.Method == http.MethodPost {