Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

chore(Dockerfile): update CMD to run migration script before starting server

Timothy Yine31dc2ab07df
diff --git a/Dockerfile b/Dockerfile
index fc3e5aa9..01a4373b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -33,4 +33,5 @@ ENV NODE_ENV=production
ENV NITRO_PORT=3000
ENV NITRO_HOST=0.0.0.0
-CMD ["node", ".output/server/index.mjs"]
+# node scripts/migrate.mjs first
+CMD ["sh", "-c", "node scripts/migrate.mjs && node .output/server/index.mjs"]