📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fixes with docker: reduce size
Smaug673934b2e0283dee
diff --git a/frontend/Dockerfile b/frontend/Dockerfileindex 8e4c34f8..7bd4cd55 100644--- a/frontend/Dockerfile+++ b/frontend/Dockerfile@@ -1,27 +1,28 @@-# ---- Build stage -----FROM node:20-alpine AS builder+# Build stage+FROM node:22-alpine AS builder-WORKDIR /app+# Install bun+RUN apk add --no-cache curl unzip bash && \+ curl -fsSL https://bun.sh/install | bash && \+ cp /root/.bun/bin/bun /usr/local/bin/bun && \+ chmod +x /usr/local/bin/bun-# Copier et installer dépendances+WORKDIR /appCOPY package.json bun.lock ./-RUN npm install -g bun && bun install--# Copier le reste du code et builder+RUN bun installCOPY . .+ENV NODE_ENV=production+ENV PORT=8200+ENV VITE_BASE_API="http://localhost:8201"+ENV VITE_BASE_CDN="http://localhost:9000/alexandrie"RUN bun run build-# ---- Runtime stage -----FROM nginx:alpine AS runtime--# Copier le build statique vers Nginx-COPY --from=builder /app/dist /usr/share/nginx/html--# Exposer le port (optionnel, nginx écoute sur 80 par défaut)-EXPOSE 80--# Healthcheck (optionnel)-HEALTHCHECK --interval=30s --timeout=5s CMD wget -qO- http://localhost:80 || exit 1+# Runtime stage+FROM node:22-alpine AS runtime+WORKDIR /app+COPY --from=builder /app/.output /app/.output+COPY docker-entrypoint.sh /app/docker-entrypoint.sh+RUN chmod +x /app/docker-entrypoint.sh-# Démarrage de nginx-CMD ["nginx", "-g", "daemon off;"]+EXPOSE 8200+CMD ["/app/docker-entrypoint.sh"]diff --git a/frontend/docker-entrypoint.sh b/frontend/docker-entrypoint.shindex 842ed8f0..20e1881c 100644--- a/frontend/docker-entrypoint.sh+++ b/frontend/docker-entrypoint.sh@@ -1,8 +1,7 @@-#!/bin/bash+#!/bin/shecho "Building application with current environment variables..."echo "API: $VITE_BASE_API"echo "CDN: $VITE_BASE_CDN"echo "URL: $NUXT_PUBLIC_BASE_URL"-bun run buildecho "Starting Nitro server..."-exec bun .output/server/index.mjs\ No newline at end of file+exec node .output/server/index.mjs\ No newline at end of file