mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 23:10:00 +02:00
Fix build args again
This commit is contained in:
parent
c8bea4d7de
commit
632333c49f
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@ RUN npm ci
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN echo 'export * from "./\"$DATABASE\";' > server/db/index.ts
|
||||
RUN echo "export * from ./\"$DATABASE\";" > server/db/index.ts
|
||||
|
||||
RUN echo "export const build = \"$BUILD\" as any;" > server/build.ts
|
||||
|
||||
RUN npx drizzle-kit generate --dialect sqlite --schema ./server/db/sqlite/schema.ts --out init
|
||||
RUN if [ "$DATABASE" = "pg" ]; then npx drizzle-kit generate --dialect postgresql --schema ./server/db/pg/schema.ts --out init; else npx drizzle-kit generate --dialect $DATABASE --schema ./server/db/$DATABASE/schema.ts --out init; fi
|
||||
|
||||
RUN npm run build:$DATABASE
|
||||
RUN npm run build:cli
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue