enzostvs HF staff commited on
Commit
b44fa84
β€’
1 Parent(s): 6bb45c9

update sh file

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. entrypoint.sh +8 -1
Dockerfile CHANGED
@@ -19,8 +19,8 @@ RUN chmod +x entrypoint.sh
19
  # Expose the application port (assuming your app runs on port 3000)
20
  EXPOSE 3000
21
 
22
- # create symlink for /data/uploads to /static/data/uploads
23
- RUN mkdir -p ./static/data && ln -s /data/uploads ./static/data/uploads
24
 
25
  # Start the application
26
  ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
 
19
  # Expose the application port (assuming your app runs on port 3000)
20
  EXPOSE 3000
21
 
22
+ # Create symlink
23
+ # RUN mkdir -p ./static/data && ln -s /data/uploads ./static/data/uploads
24
 
25
  # Start the application
26
  ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
entrypoint.sh CHANGED
@@ -1,2 +1,9 @@
1
  #!/bin/bash
2
- npx prisma generate && npm run build && npx prisma generate && npx prisma migrate deploy && npx prisma db push && node build
 
 
 
 
 
 
 
 
1
  #!/bin/bash
2
+ npx prisma generate &&
3
+ npm run build &&
4
+ # Create symlink from /data/uploads to /static/data/uploads
5
+ ln -s /data/uploads /app/static/data/uploads &&
6
+ npx prisma generate &&
7
+ npx prisma migrate deploy &&
8
+ npx prisma db push &&
9
+ node build