Creating a Dockerfile for signal-cli
provides an isolated environment where you can run the tool without polluting your main system with its dependencies. Here's a basic Dockerfile for this purpose:
# Use an official Java base image. Since signal-cli requires at least JRE 17, we'll use that.
FROM openjdk:17-slim
# Set the version of signal-cli you want to install
ENV SIGNAL_CLI_VERSION=x.y.z