diff --git a/Dockerfile.dev b/Dockerfile.dev index 37b572e..cd5b2ea 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -8,7 +8,7 @@ RUN npm i --unsafe-perm COPY . ./ COPY config_dev.json ./config.json RUN npm run build -RUN npm run init_db +RUN npm run init-db # --- Production stage --- FROM node:24-alpine diff --git a/README.md b/README.md index 8c8b671..3b3bcf5 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,9 @@ You can preview the production build with `npm run preview`. ## Initializing the SQLite DB -A database initialization script `init_db.js` in included in the `src/init` folder. It will create a users database (if not existing) and populate it with a default admin user. Additionally, an empty cases table will be created. +A database initialization script `init_db.ts` in included in the `src/init` folder. It will create a users database (if not existing) and populate it with a default admin user. Additionally, an empty cases table will be created. -It can be run with `node init_db.js` +It can be run with `node init_db.ts` Database schema: