Suno-style web UI for a self-hosted MiniMax-Music3 inference server
TypeScript ai-musicdiffusersdockerexpressminimaxminimax-musicmusic-generationreactself-hostedsgl-omnisunotailwindcsstext-to-musictypescriptvite
fix(docker): include workspace node_modules in the runtime image
Adam Benhassen8de333e7ffaa
diff --git a/Dockerfile b/Dockerfileindex 824b743..04421be 100644--- a/Dockerfile+++ b/Dockerfile@@ -10,7 +10,8 @@ RUN npm ciCOPY server serverCOPY web webRUN npm run build \- && npm prune --omit=dev+ && npm prune --omit=dev \+ && mkdir -p server/node_modules# ---- runtime -------------------------------------------------------------FROM node:22-alpine@@ -22,6 +23,8 @@ WORKDIR /appCOPY --from=build /app/package.json ./COPY --from=build /app/node_modules ./node_modulesCOPY --from=build /app/server/package.json ./server/+# npm may nest a workspace's deps here instead of hoisting them (e.g. undici)+COPY --from=build /app/server/node_modules ./server/node_modulesCOPY --from=build /app/server/dist ./server/distCOPY --from=build /app/web/dist ./web/distRUN mkdir -p /data && chown -R node:node /data /app