Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

chore(docker): include pnpm workspace config (#1100)

Corentin Thomasset2d9ebe1d7e9c
diff --git a/.dockerignore b/.dockerignore
index e82a0101..b5e916a2 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -12,16 +12,16 @@ Dockerfile
fly.toml
.wrangler
-coverage
+**/coverage
cache
.zed
-*.vars
-*.db
-*.db-shm
-*.db-wal
-*.sqlite
-*.sqlite-shm
-*.sqlite-wal
+**/*.vars
+**/*.db
+**/*.db-shm
+**/*.db-wal
+**/*.sqlite
+**/*.sqlite-shm
+**/*.sqlite-wal
.output
.data
@@ -33,13 +33,14 @@ dist-app
dist-node
dist-cloudflare
-local-documents
-ingestion
-.cursorrules
-*.traineddata
+**/local-documents
+**/ingestion
*.md
+**/*.traineddata
+
-.eslintcache
+.cursorrules
+**/.eslintcache
.claude
.opencode
-AGENTS.md
\ No newline at end of file
+AGENTS.md
diff --git a/apps/papra-server/Dockerfile b/apps/papra-server/Dockerfile
index 8926ea88..a72f66b0 100644
--- a/apps/papra-server/Dockerfile
+++ b/apps/papra-server/Dockerfile
@@ -50,6 +50,7 @@ RUN apt-get update -qq && \
rm -rf /var/lib/apt/lists/*
COPY --from=build /app/production /app
+COPY pnpm-workspace.yaml ./
EXPOSE 1221
diff --git a/packages/app/Dockerfile b/packages/app/Dockerfile
index 121bb62a..2cd9195d 100644
--- a/packages/app/Dockerfile
+++ b/packages/app/Dockerfile
@@ -35,6 +35,7 @@ WORKDIR /app
COPY --from=build /prod/papra-server ./
COPY --from=build /app/apps/papra-client/dist ./public
+COPY pnpm-workspace.yaml ./
EXPOSE 1221
diff --git a/packages/app/Dockerfile.rootless b/packages/app/Dockerfile.rootless
index b093423d..4f4d238f 100644
--- a/packages/app/Dockerfile.rootless
+++ b/packages/app/Dockerfile.rootless
@@ -45,6 +45,7 @@ USER nonroot
COPY --from=build --chown=nonroot:nonroot /prod/papra-server ./
COPY --from=build --chown=nonroot:nonroot /app/apps/papra-client/dist ./public
+COPY --chown=nonroot:nonroot pnpm-workspace.yaml ./
EXPOSE 1221
diff --git a/packages/app/package.json b/packages/app/package.json
index b4466ca0..c18a07f2 100644
--- a/packages/app/package.json
+++ b/packages/app/package.json
@@ -9,9 +9,9 @@
"directory": "packages/app"
},
"scripts": {
- "build:docker:root": "docker build -t papra-local-root -f ./Dockerfile ../..",
+ "build:docker:root": "docker build --no-cache -t papra-local-root -f ./Dockerfile ../..",
"build:docker:root:amd64": "docker buildx build --platform linux/amd64 -t papra-local-root-amd64 -f ./Dockerfile --load ../..",
"build:docker:root:arm64": "docker buildx build --platform linux/arm64 -t papra-local-root-arm64 -f ./Dockerfile --load ../..",
- "build:docker:rootless": "docker build -t papra-local-rootless -f ./Dockerfile.rootless ../.."
+ "build:docker:rootless": "docker build --no-cache -t papra-local-rootless -f ./Dockerfile.rootless ../.."
}
}
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 383d5e36..eb97c09d 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -28,6 +28,7 @@ catalog:
'@paralleldrive/cuid2': ^3.3.0
nodeLinker: hoisted
+verifyDepsBeforeRun: false # pnpm deploy in prod mode strips dev deps, so we don't want to verify them before run
allowBuilds:
canvas: true