diff --git a/Dockerfile b/Dockerfile index 99adfe9..850ddde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,13 +8,13 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /bin/app FROM alpine:3.22 WORKDIR /app COPY --from=build /bin/app /app/app -COPY apps.json /app/apps.json +COPY apps.json /data/apps.json COPY templates /app/templates COPY static /app/static ENV SERVER_MODE="https" \ ADDR=":8443" \ APP_TITLE="Mein App-Store" \ - APPS_JSON="/app/apps.json" \ + APPS_JSON="/data/apps.json" \ STATIC_DIR="/app/static" \ TEMPLATE_DIR="/app/templates" \ TLS_CERT_FILE="/app/pub.pem" \ diff --git a/main.go b/main.go index 88e09e7..6b91533 100644 --- a/main.go +++ b/main.go @@ -118,7 +118,7 @@ func redirectToHTTPS(httpsAddr string) http.Handler { func main() { // App-Config appTitle := getenv("APP_TITLE", "Mein App-Store") - jsonPath := getenv("APPS_JSON", "apps.json") + jsonPath := getenv("APPS_JSON", "/data/apps.json") staticDir := getenv("STATIC_DIR", "static") tmplDir := getenv("TEMPLATE_DIR", "templates")