mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
1c15eb2146
- Replace chat package with conversation flow architecture - Add channel identity avatar support (migration 0002) - Refactor channel adapters, identities, and message routing - Update frontend: simplify composables, modernize UI components - Improve Docker builds with cache mounts and version metadata - Optimize healthchecks and simplify service dependencies
36 lines
807 B
Docker
36 lines
807 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM node:25-alpine AS builder
|
|
|
|
WORKDIR /build
|
|
|
|
RUN npm install -g pnpm@10
|
|
|
|
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml ./
|
|
|
|
COPY packages ./packages
|
|
|
|
RUN --mount=type=cache,target=/root/.local/share/pnpm/store \
|
|
pnpm install
|
|
|
|
ARG VITE_API_URL=http://localhost:8080
|
|
ARG VITE_AGENT_URL=http://localhost:8081
|
|
|
|
ENV VITE_API_URL=$VITE_API_URL
|
|
ENV VITE_AGENT_URL=$VITE_AGENT_URL
|
|
|
|
WORKDIR /build/packages/web
|
|
RUN pnpm build
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /build/packages/web/dist /usr/share/nginx/html
|
|
|
|
COPY docker/config/nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|
|
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
CMD wget --no-verbose --tries=1 --spider http://localhost/health || exit 1
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|