From 3e183b220ce425e61405b46b3d559aa6a893983f Mon Sep 17 00:00:00 2001 From: Mateusz Pstrucha Date: Tue, 22 Sep 2026 22:13:32 +0200 Subject: [PATCH] Add .dockerignore and bump to 0.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without .dockerignore the build context included target/ — gigabytes sent to the daemon before the build even starts, on a host where disk has already been a constraint. Verified the image builds, runs migrations and serves /healthz. Co-Authored-By: Claude Opus 5 --- .dockerignore | 9 +++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6b7d262 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,9 @@ +# The build context is sent to the daemon before the build starts, so +# target/ alone would push gigabytes across for no reason — the image +# compiles from source in its own builder stage anyway. +target +.git +data +.env +docs +*.md diff --git a/Cargo.lock b/Cargo.lock index a7789c7..97bd1e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2663,7 +2663,7 @@ dependencies = [ [[package]] name = "tern-server" -version = "0.1.0" +version = "0.2.0" dependencies = [ "anyhow", "argon2", diff --git a/Cargo.toml b/Cargo.toml index 8338071..da93ec5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tern-server" -version = "0.1.0" +version = "0.2.0" edition = "2021" description = "Tern sync server — the only component that speaks IMAP/SMTP"