diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index ad5476e..d81c8a5 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,20 +4,9 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
@@ -49,38 +38,39 @@
- {
- "keyToString": {
- "NIXITCH_NIXPKGS_CONFIG": "",
- "NIXITCH_NIX_CONF_DIR": "",
- "NIXITCH_NIX_OTHER_STORES": "",
- "NIXITCH_NIX_PATH": "",
- "NIXITCH_NIX_PROFILES": "",
- "NIXITCH_NIX_REMOTE": "",
- "NIXITCH_NIX_USER_PROFILE_DIR": "",
- "Node.js.index.ts.executor": "Run",
- "RunOnceActivity.MCP Project settings loaded": "true",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
- "RunOnceActivity.git.unshallow": "true",
- "RunOnceActivity.typescript.service.memoryLimit.init": "true",
- "git-widget-placeholder": "main",
- "go.import.settings.migrated": "true",
- "javascript.preferred.runtime.type.id": "node",
- "last_opened_file_path": "//wsl.localhost/Ubuntu/home/ahilbig/git/vcr/zabbix-graphql-api/src/test",
- "node.js.detected.package.eslint": "true",
- "node.js.detected.package.tslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.tslint": "(autodetect)",
- "nodejs_interpreter_path": "wsl://Ubuntu@/home/ahilbig/.nvm/versions/node/v24.12.0/bin/node",
- "nodejs_package_manager_path": "npm",
- "npm.compile.executor": "Run",
- "npm.prod.executor": "Run",
- "settings.editor.selected.configurable": "preferences.sourceCode.TypeScript",
- "ts.external.directory.path": "\\\\wsl.localhost\\Ubuntu\\home\\ahilbig\\git\\vcr\\zabbix-graphql-api\\node_modules\\typescript\\lib",
- "vue.rearranger.settings.migration": "true"
+
+}]]>
@@ -99,6 +89,16 @@
+
+
+
+
+
+
+
+
+
+
@@ -124,11 +124,13 @@
+
+
@@ -147,7 +149,7 @@
1768273021451
-
+
@@ -213,7 +215,23 @@
1768313032612
-
+
+
+ 1768381426293
+
+
+
+ 1768381426293
+
+
+
+ 1768382917600
+
+
+
+ 1768382917600
+
+
@@ -240,6 +258,8 @@
-
+
+
+
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index fec3c93..f206387 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,10 +17,9 @@ ARG API_VERSION
ENV API_VERSION=${API_VERSION}
WORKDIR /usr/app
COPY package*.json ./
-COPY schema ./
RUN npm install --production
COPY --from=builder /usr/app/dist ./dist
-
-CMD node dist/index.js
+ADD schema ./dist/schema
+CMD node ./dist/index.js
EXPOSE 4000
\ No newline at end of file
diff --git a/package.json b/package.json
index 9c56b92..8cab6b9 100644
--- a/package.json
+++ b/package.json
@@ -7,10 +7,11 @@
"scripts": {
"compile": "tsc",
"start": "nodemon --watch \"src/**\" --watch \"schema.graphql\" --ext \"ts,json\" --exec \"tsc & node --require ts-node/register --inspect --import tsx/esm ./src/index.ts\"",
- "prod": "node ./dist/index.js",
+ "prod": "npm run copy-schema && node ./dist/index.js",
"test": "jest --detectOpenHandles --forceExit --bail",
"codegen": "graphql-codegen --config codegen.ts --watch \"schema.graphql\"",
- "nodemon": "nodemon --watch \"src/**\" --watch \"schema.graphql\" --ext \"ts,json\" --exec \"tsc"
+ "nodemon": "nodemon --watch \"src/**\" --watch \"schema.graphql\" --ext \"ts,json\" --exec \"tsc",
+ "copy-schema": "cp -R schema ./dist/"
},
"keywords": [],
"author": "Andreas Hilbig",