Add Docker support#78
Open
Igglybuff wants to merge 3 commits into
Open
Conversation
Adds a Dockerfile, docker-compose.yaml, and .dockerignore for running Estrella as a container. The image is not published; build it locally with `docker compose build`. The Dockerfile uses a multi-stage build: a Node stage compiles the frontend, a Rust stage builds the binary, and a minimal debian:trixie-slim runtime stage produces the final image. Built with --no-default-features to avoid the libheif ≥ 1.21 requirement. The serve command accepts PRINTER_DEVICE and LISTEN_ADDR as environment variables (in addition to CLI flags) for container-friendly configuration. PRINTER_WIDTH is documented in docker-compose.yaml and also accepted as an env var (added in the companion configurable-width change). README gets a Docker section covering build, Bluetooth setup, docker compose usage, environment variables, and persisting the RFCOMM binding across reboots with a systemd unit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Timestamps in printed receipts use the system clock. Without TZ set the container defaults to UTC; add it as a commented example so it's easy to configure without rebuilding the image. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Adds a
Dockerfileanddocker-compose.yamlfor running estrella in a container.The compose file documents how to pair the Bluetooth printer on the host and bind the RFCOMM device before starting the container, and passes
/dev/rfcomm0through as a device.Also adds a
TZenvironment variable so the receipt timestamp reflects the correct local time.🤖 Generated with Claude Code