Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

chore(docker): add EMAILS_DRY_RUN environment variable to Dockerfiles (#302)

Corentin Thomassetb62ddf2bc4d1
diff --git a/.changeset/cute-ghosts-draw.md b/.changeset/cute-ghosts-draw.md
new file mode 100644
index 00000000..8122c72b
--- /dev/null
+++ b/.changeset/cute-ghosts-draw.md
@@ -0,0 +1,5 @@
+---
+"@papra/app-server": patch
+---
+
+Set email setting to dry-run by default in docker
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 1fb784bf..d2f6df3b 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -40,6 +40,7 @@ ENV SERVER_SERVE_PUBLIC_DIR=true
ENV DATABASE_URL=file:./app-data/db/db.sqlite
ENV DOCUMENT_STORAGE_FILESYSTEM_ROOT=./app-data/documents
ENV PAPRA_CONFIG_DIR=./app-data
+ENV EMAILS_DRY_RUN=true
RUN mkdir -p ./app-data/db ./app-data/documents ./ingestion
diff --git a/docker/Dockerfile.rootless b/docker/Dockerfile.rootless
index 9762d7a7..19fba746 100644
--- a/docker/Dockerfile.rootless
+++ b/docker/Dockerfile.rootless
@@ -51,5 +51,6 @@ ENV DATABASE_URL=file:./app-data/db/db.sqlite
ENV DOCUMENT_STORAGE_FILESYSTEM_ROOT=./app-data/documents
ENV PAPRA_CONFIG_DIR=./app-data
ENV INGESTION_FOLDER_ROOT=./ingestion
+ENV EMAILS_DRY_RUN=true
CMD ["pnpm", "start:with-migrations"]
\ No newline at end of file