Spaces:
Runtime error
Runtime error
build app in entrypoint.sh
Browse files- Dockerfile +1 -1
- app/api/route.ts +0 -1
- entrypoint.sh +1 -1
Dockerfile
CHANGED
@@ -21,7 +21,7 @@ COPY --chown=1000 . .
|
|
21 |
RUN chmod +x entrypoint.sh
|
22 |
|
23 |
# Build the Next.js application for production
|
24 |
-
RUN npm run build
|
25 |
|
26 |
# Expose the application port (assuming your app runs on port 3000)
|
27 |
EXPOSE 3002
|
|
|
21 |
RUN chmod +x entrypoint.sh
|
22 |
|
23 |
# Build the Next.js application for production
|
24 |
+
# RUN npm run build
|
25 |
|
26 |
# Expose the application port (assuming your app runs on port 3000)
|
27 |
EXPOSE 3002
|
app/api/route.ts
CHANGED
@@ -10,7 +10,6 @@ const prisma = new PrismaClient()
|
|
10 |
export async function POST(
|
11 |
request: Request,
|
12 |
) {
|
13 |
-
console.log(process.env.NEXT_APP_HF_TOKEN)
|
14 |
const global_headers = {
|
15 |
Authorization: `Bearer ${process.env.NEXT_APP_HF_TOKEN}`,
|
16 |
'Content-Type': 'application/json',
|
|
|
10 |
export async function POST(
|
11 |
request: Request,
|
12 |
) {
|
|
|
13 |
const global_headers = {
|
14 |
Authorization: `Bearer ${process.env.NEXT_APP_HF_TOKEN}`,
|
15 |
'Content-Type': 'application/json',
|
entrypoint.sh
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
#!/bin/bash
|
2 |
-
npx prisma generate && npx prisma migrate deploy && npx prisma db push && npm start
|
|
|
1 |
#!/bin/bash
|
2 |
+
npm run build && npx prisma generate && npx prisma migrate deploy && npx prisma db push && npm start
|