enzostvs HF staff commited on
Commit
2b1e359
1 Parent(s): 3aac915

build app in entrypoint.sh

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. app/api/route.ts +0 -1
  3. 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