Auto migration for database
This commit is contained in:
1 parent
0b577a9cd9
commit
e3b50cceb0
2 files changed
+11
-1
No files matched your search
+3
-1
@@ -35,4 +35,6 @@ EXPOSE 3000
|
||||
ENV PORT=3000
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
COPY entrypoint.sh /app/entrypoint.sh
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# entrypoint.sh
|
||||
|
||||
echo "Running database push..."
|
||||
npx prisma db push
|
||||
|
||||
echo "Starting application..."
|
||||
node server.js
|
||||
Reference in new issue
Block a user