add sqlcipher support to docker build

- Install sqlcipher-dev in builder stage
- Configure exqlite to use system SQLCipher
- Add sqlcipher-libs to runtime image
- Exclude mockups/ from live reload patterns

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-03-13 13:34:28 +00:00
parent a6e5db73c0
commit a2d6bf8a02
2 changed files with 13 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
import Config
# Configure your database
# Optional: set SECRET_KEY_DB to test SQLCipher encryption locally
config :berrypod, Berrypod.Repo,
database: Path.expand("../berrypod_dev.db", __DIR__),
pool_size: 5,
@@ -12,6 +13,7 @@ config :berrypod, Berrypod.Repo,
stacktrace: true,
show_sensitive_data_on_connection_error: true
# For development, we disable any cache and enable
# debugging and code reloading.
#
@@ -68,7 +70,7 @@ config :berrypod, BerrypodWeb.Endpoint,
live_reload: [
web_console_logger: true,
patterns: [
~r"priv/static/(?!uploads/).*(js|css|png|jpeg|jpg|gif|svg)$",
~r"priv/static/(?!uploads/|mockups/).*(js|css|png|jpeg|jpg|gif|svg)$",
~r"priv/gettext/.*(po)$",
~r"lib/berrypod_web/(?:controllers|live|components|router)/?.*\.(ex|heex)$"
]