feat: production-ready dockerfile and environment variable support - #67
Merged
Conversation
every clap arg now accepts an EMBER_* env var, making it easy to configure the server in containers without wrapper scripts.
excludes target/, bench/, docs/, tests/, clients/, and markdown files from the docker build context.
multi-stage build with bookworm-slim, non-root user (uid 65532), jemalloc via default features, /data volume for persistence, and OCI labels. sets EMBER_HOST=0.0.0.0 for container networking.
kacy
force-pushed
the
feat/docker-env-production
branch
from
February 8, 2026 23:50
2c1b8b8 to
3e349e6
Compare
builds and runs the container with port 6379 forwarded for quick local testing.
kacy
force-pushed
the
feat/docker-env-production
branch
from
February 8, 2026 23:53
3e349e6 to
d0bbf45
Compare
kacy
added a commit
that referenced
this pull request
Feb 11, 2026
* feat: add environment variable support for all server options every clap arg now accepts an EMBER_* env var, making it easy to configure the server in containers without wrapper scripts. * feat: add .dockerignore to reduce build context excludes target/, bench/, docs/, tests/, clients/, and markdown files from the docker build context. * feat: production-ready dockerfile multi-stage build with bookworm-slim, non-root user (uid 65532), jemalloc via default features, /data volume for persistence, and OCI labels. sets EMBER_HOST=0.0.0.0 for container networking. * feat: add docker-run makefile target builds and runs the container with port 6379 forwarded for quick local testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
summary
makes the docker image production-ready and adds environment variable support for all server configuration options.
EMBER_*env var (e.g.EMBER_PORT=6380), standard for container deploymentsdebian:bookworm-slim(stable, not trixie/testing), non-rootemberuser (uid 65532),/datavolume for persistence,EMBER_HOST=0.0.0.0default for container networking, OCI labels.dockerignore: excludestarget/,bench/,docs/,tests/,clients/, and markdown files from build contextmake docker-run: builds and runs the container with port 6379 forwardedwhat was tested
cargo build -p ember-server— compiles cleanly with env attrscargo test -p ember-server— all 32 tests pass--helpoutput via clapdesign considerations
debian:bookworm-slimover distroless because TLS needsca-certificatesandlibssl3, and bookworm is the current stable release (trixie is testing)--featuresflag needed in the buildENTRYPOINT ["ember-server"]with no hardcoded flags — all config flows through env vars or CMD args