diff --git a/Dockerfile b/Dockerfile index afe2e67..4de08de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,8 @@ RUN npm ci COPY tsconfig.json vitest.config.ts ./ COPY server ./server -RUN npm run build:server && npm test +COPY web ./web +RUN npm run build:server && npm run build:web && npm test RUN npm prune --omit=dev # ---- runtime stage ---- @@ -23,6 +24,7 @@ WORKDIR /app COPY package.json package-lock.json ./ COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/server/dist ./server/dist +COPY --from=build /app/web/dist ./web/dist ENV PORT=3000 ENV DATA_DIR=/data diff --git a/README.md b/README.md index 3fcc972..458b852 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,9 @@ token and (optionally) your Subsonic server details in Settings. ```bash npm install -npm test # vitest -npm run dev:server +npm test # vitest (server + web) +npm run dev # API on :3000 + Vite dev server on :5173 (proxied) +npm run build # server + web production build ``` Spec: `docs/superpowers/specs/2026-08-29-record-shop-design.md`