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
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:
@@ -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" \
|
||||
|
||||
2
main.go
2
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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user