Spaces:
Runtime error
Runtime error
Akshar2325 commited on
Commit ·
63f45bf
1
Parent(s): c37ea79
feat(docker): add Prisma client generation during build process
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -19,8 +19,9 @@ COPY prisma ./prisma/
|
|
| 19 |
# Copy source code
|
| 20 |
COPY . .
|
| 21 |
|
| 22 |
-
# Install dependencies and
|
| 23 |
-
|
|
|
|
| 24 |
|
| 25 |
# Expose port for Hugging Face
|
| 26 |
EXPOSE 7860
|
|
|
|
| 19 |
# Copy source code
|
| 20 |
COPY . .
|
| 21 |
|
| 22 |
+
# Install dependencies and generate Prisma client with dummy DATABASE_URL (needed for build)
|
| 23 |
+
ENV DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy"
|
| 24 |
+
RUN npm ci && npx prisma generate && npm run build
|
| 25 |
|
| 26 |
# Expose port for Hugging Face
|
| 27 |
EXPOSE 7860
|