Notes are saved as markdown pages in a Nextcloud collective via the Collectives OCS API (page metadata/creation) and WebDAV (content read/append), following the same npm-workspaces + session-auth architecture as CityTracker. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NvmYFQSMqs2N3q2zUDNTVn
27 lines
721 B
Docker
27 lines
721 B
Docker
FROM node:20-alpine AS build
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
COPY shared/package.json shared/package.json
|
|
COPY server/package.json server/package.json
|
|
COPY client/package.json client/package.json
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:20-alpine AS runtime
|
|
WORKDIR /app
|
|
ENV NODE_ENV=production
|
|
|
|
COPY package.json package-lock.json ./
|
|
COPY shared/package.json shared/package.json
|
|
COPY server/package.json server/package.json
|
|
RUN npm ci --omit=dev --workspace=@notes/shared --workspace=@notes/server
|
|
|
|
COPY --from=build /app/shared/dist shared/dist
|
|
COPY --from=build /app/server/dist server/dist
|
|
COPY --from=build /app/client/dist client/dist
|
|
|
|
EXPOSE 3000
|
|
CMD ["node", "server/dist/index.js"]
|