1
0

feat: docker builds the web app, full-stack serving verified

This commit is contained in:
2026-09-03 19:05:57 +02:00
parent c1852435c8
commit f2fff1d7be
2 changed files with 6 additions and 3 deletions

View File

@@ -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

View File

@@ -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`