Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
update sh file
Browse files- Dockerfile +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 |
-
#
|
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 &&
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|