Auto migration for database
This commit is contained in:
+3
-1
@@ -35,4 +35,6 @@ EXPOSE 3000
|
|||||||
ENV PORT=3000
|
ENV PORT=3000
|
||||||
ENV HOSTNAME="0.0.0.0"
|
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