We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 652e0b2 commit ed5f8a9Copy full SHA for ed5f8a9
Dockerfile
@@ -14,11 +14,5 @@ RUN npx drizzle-kit generate
14
15
EXPOSE 3000
16
17
-# Create a startup script that will run migrations and then start the app
18
-RUN echo '#!/bin/sh\nnpx drizzle-kit push\nexec "$@"' > /app/docker-entrypoint.sh && \
19
- chmod +x /app/docker-entrypoint.sh
20
-
21
-ENTRYPOINT ["/app/docker-entrypoint.sh"]
22
23
-# Default to development mode
24
-CMD ["npm", "run", "dev"]
+# Run migrations and start the app
+CMD npx drizzle-kit push && npm run dev
docker-entrypoint.sh
@@ -0,0 +1,3 @@
1
+#!/bin/sh
2
+npx drizzle-kit push
3
+exec "$@"
0 commit comments