fix pipeline: Docker npm run init-db
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user