mirror of
https://github.com/Dvorinka/Primora.git
synced 2026-10-28 07:41:23 +00:00
- apps/desktop: Tauri 2 thin shell; connect screen stores the deployment URL, webview renders the remote console, tray with Show/Change Server/ Quit, close-to-tray, single-instance - frontend: vite-plugin-pwa generates manifest + Workbox SW (shell precache, /api /auth /mailpit NetworkOnly), install banner on beforeinstallprompt, rasterized PWA icons - release.yml: desktop bundle matrix (linux/macos/windows) attached to GitHub Releases - workspace 0.5.0; Dockerfiles copy the desktop workspace manifest Authored By: TDvorak <[email protected]>
42 lines
1.2 KiB
Docker
42 lines
1.2 KiB
Docker
FROM node:22-alpine AS builder
|
|
WORKDIR /app
|
|
|
|
# Copy root configs for workspace context
|
|
COPY package.json package-lock.json tsconfig.base.json ./
|
|
COPY apps/auth/package.json ./apps/auth/package.json
|
|
COPY apps/cli/package.json ./apps/cli/package.json
|
|
COPY apps/desktop/package.json ./apps/desktop/package.json
|
|
COPY apps/frontend/package.json ./apps/frontend/package.json
|
|
COPY apps/mcp/package.json ./apps/mcp/package.json
|
|
COPY packages/api-client/package.json ./packages/api-client/package.json
|
|
COPY packages/client/package.json ./packages/client/package.json
|
|
COPY packages/shared-types/package.json ./packages/shared-types/package.json
|
|
|
|
RUN npm ci
|
|
|
|
# Copy full source
|
|
COPY . .
|
|
|
|
# Generate client
|
|
RUN npm run generate:client
|
|
|
|
# Build frontend
|
|
WORKDIR /app/apps/frontend
|
|
RUN npm run build
|
|
|
|
# Stage 2: Serve with Nginx
|
|
FROM nginx:1.27-alpine
|
|
COPY --from=builder /app/apps/frontend/dist /usr/share/nginx/html
|
|
# Add simple nginx config for SPA routing
|
|
RUN echo 'server { \
|
|
listen 80; \
|
|
location / { \
|
|
root /usr/share/nginx/html; \
|
|
index index.html; \
|
|
try_files $uri $uri/ /index.html; \
|
|
} \
|
|
}' > /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|