mirror of
https://github.com/nadrad/h-m-m.git
synced 2026-03-13 20:25:45 +01:00
Merge branch 'main' of https://github.com/nadrad/h-m-m
This commit is contained in:
commit
b90bc6649d
2 changed files with 10 additions and 6 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue