data-fix
All checks were successful
release-tag / release-image (push) Successful in 1m29s
build-binaries / build (, amd64, linux) (push) Has been skipped
build-binaries / build (, arm, 7, linux) (push) Has been skipped
build-binaries / build (, arm64, linux) (push) Has been skipped
build-binaries / build (.exe, amd64, windows) (push) Has been skipped
build-binaries / release (push) Has been skipped

This commit is contained in:
2025-09-06 21:03:05 +02:00
parent d842d25400
commit 3e217b8ef4
2 changed files with 3 additions and 3 deletions

View File

@@ -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" \

View File

@@ -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")