Merge pull request #15 from vc0sta/main

Dockerize app
This commit is contained in:
Nader K. Rad 2022-09-17 11:47:29 +02:00 committed by GitHub
commit 0ae5849ada
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM php:cli
WORKDIR /app
COPY ./h-m-m .
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libonig-dev xclip xsel wl-clipboard
RUN docker-php-ext-install pcntl mbstring
RUN chmod +x h-m-m
CMD ["./h-m-m"]

View file

@ -148,6 +148,15 @@ Optionally, you can make the file executable by running the `chmod +x h-m-m` in
In Arch Linux, you can use the `h-m-m-git` AUR package to install it.
It's also possible to execute `h-m-m` through docker (or podman), just run:
```sh
# Build the image
docker build -t hmm .
# Run it
docker run --rm -it -v $(pwd):/app/ hmm
```
## 3. Installation script for Linux