feat: docker builds the web app, full-stack serving verified
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user