summaryrefslogtreecommitdiffhomepage
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/entrypoint.dev.sh11
-rw-r--r--docker/entrypoint.sh8
2 files changed, 19 insertions, 0 deletions
diff --git a/docker/entrypoint.dev.sh b/docker/entrypoint.dev.sh
new file mode 100644
index 0000000..b28b44f
--- /dev/null
+++ b/docker/entrypoint.dev.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -euo pipefail
+
+# Install/update dependencies.
+# Source code is bind-mounted from the host; node_modules lives on the host
+# filesystem via the bind mount so it persists across container restarts
+# and is shared between the api and frontend services.
+bun install
+
+# Execute the main command
+exec "$@"
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
new file mode 100644
index 0000000..4f35d94
--- /dev/null
+++ b/docker/entrypoint.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+set -euo pipefail
+
+# Production entrypoint
+# Future phases: add database migrations here
+
+# Execute the main command
+exec "$@"