📚 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
Optimize build
Smaug6739c8b4c39d7559
diff --git a/.github/workflows/docker-image-deploy.yml b/.github/workflows/docker-image-deploy.ymlindex 9e63a337..12e0816e 100644--- a/.github/workflows/docker-image-deploy.yml+++ b/.github/workflows/docker-image-deploy.yml@@ -3,15 +3,20 @@ name: Build and Publish Docker Imageson:push:branches: [deploy]+ paths:+ - backend/**+ - frontend/**+ - .github/workflows/**++permissions:+ contents: read+ packages: writejobs:- build-and-push:+ backend:+ name: Build & Push Backendruns-on: ubuntu-latest- permissions:- contents: read- packages: write-steps:- name: Checkout repositoryuses: actions/checkout@v4@@ -22,6 +27,9 @@ jobs:- name: Set up Docker Buildxuses: docker/setup-buildx-action@v3+ with:+ driver-opts: |+ image=moby/buildkit:latest- name: Log in to GitHub Container Registryuses: docker/login-action@v3@@ -42,6 +50,31 @@ jobs:ghcr.io/${{ steps.repo.outputs.repo_lc }}-backend:latestghcr.io/${{ steps.repo.outputs.repo_lc }}-backend:${{ github.ref_name }}+ frontend:+ name: Build & Push Frontend+ runs-on: ubuntu-latest++ steps:+ - name: Checkout repository+ uses: actions/checkout@v4++ - name: Set lowercase repository name+ id: repo+ run: echo "repo_lc=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT++ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v3+ with:+ driver-opts: |+ image=moby/buildkit:latest++ - name: Log in to GitHub Container Registry+ uses: docker/login-action@v3+ with:+ registry: ghcr.io+ username: ${{ github.actor }}+ password: ${{ secrets.GITHUB_TOKEN }}+- name: Build and push frontend imageuses: docker/build-push-action@v6with:diff --git a/frontend/Dockerfile b/frontend/Dockerfileindex 950b5c8b..afd84be7 100644--- a/frontend/Dockerfile+++ b/frontend/Dockerfile@@ -4,12 +4,16 @@FROM oven/bun:1 AS builderWORKDIR /app++# Dépendances (cacheable)COPY package.json bun.lock ./-RUN bun install+RUN bun install --frozen-lockfile++# Code sourceCOPY . .+ENV NODE_ENV=productionRUN bun run build-# ========================================# Runtime stage# ========================================