This commit is contained in:
nadrad 2025-04-08 11:53:25 +02:00
commit b90bc6649d
2 changed files with 10 additions and 6 deletions

View file

@ -2,12 +2,13 @@ FROM php:cli
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libonig-dev xclip xsel wl-clipboard
RUN apt-get update && \
apt-get install -y --no-install-recommends libonig-dev xclip xsel wl-clipboard && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install mbstring
COPY ./h-m-m .
CMD ./h-m-m $file
ENTRYPOINT ["./h-m-m"]

View file

@ -322,8 +322,11 @@ It's also possible to execute `h-m-m` through docker (or podman):
# Build the image
docker build -t hmm .
# Run it
docker run --rm -it -v $(pwd):/app/ hmm
# Run it (mount $pwd for file access, X11 & DISLAY for clipboard access)
docker run --rm -it -v $(pwd):/app/ -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY hmm
# Convinience
alias hmm='docker run --rm -it -v $(pwd):/app/ -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY hmm'
```