mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 23:17:59 -05:00
fix: docker setup (#125)
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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
|
||||
3
docker-entrypoint.sh
Executable file
3
docker-entrypoint.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
npx drizzle-kit push
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user