diff --git a/Dockerfile b/Dockerfile index 8f7b706..4b6c81f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/main.go b/main.go index 5f68031..3f746fd 100644 --- a/main.go +++ b/main.go @@ -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 {