mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
fix: docker setup (#125)
This commit is contained in:
+2
-8
@@ -14,11 +14,5 @@ RUN npx drizzle-kit generate
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Create a startup script that will run migrations and then start the app
|
||||
RUN echo '#!/bin/sh\nnpx drizzle-kit push\nexec "$@"' > /app/docker-entrypoint.sh && \
|
||||
chmod +x /app/docker-entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||
|
||||
# Default to development mode
|
||||
CMD ["npm", "run", "dev"]
|
||||
# Run migrations and start the app
|
||||
CMD npx drizzle-kit push && npm run dev
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
npx drizzle-kit push
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user