From 496dd7bb21cb87f5cf3f408da06756c73cf54463 Mon Sep 17 00:00:00 2001 From: Zdenek Devaty Date: Mon, 18 Dec 2023 06:43:17 +0100 Subject: [PATCH] Move resources to a common directory To make sure they are available at runtime. --- Dockerfile | 2 +- main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2cfe777..94c5740 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ FROM eliona/base-alpine:latest AS target COPY --from=build /app ./ COPY conf/*.sql ./conf/ -# COPY eliona/*.json ./eliona/ +COPY resources/ ./resources/ COPY openapi.yaml ./ COPY metadata.json ./ diff --git a/main.go b/main.go index 4097a9d..0cbdad0 100644 --- a/main.go +++ b/main.go @@ -49,8 +49,8 @@ func main() { // Init the app before the first run. app.Init(db.Pool(), app.AppName(), app.ExecSqlFile("conf/init.sql"), - asset.InitAssetTypeFiles("eliona/asset-type-*.json"), - dashboard.InitWidgetTypeFiles("eliona/widget-type-*.json"), + asset.InitAssetTypeFiles("resources/asset-types/*.json"), + dashboard.InitWidgetTypeFiles("resources/widget-types/*.json"), ) // Starting the service to collect the data for this app.