fix(backend): set DATABASE_URL for prisma generate in docker build
This commit is contained in:
@@ -7,7 +7,7 @@ RUN apk add --no-cache curl jq
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
COPY prisma ./prisma
|
COPY prisma ./prisma
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
RUN npx prisma generate
|
RUN DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:5432/postgres?schema=public" npx prisma generate
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user