mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-01-09 19:17:19 -03:00
Merge pull request #40 from iamstefin/contrib-docker
Added Docker support
This commit is contained in:
commit
9eb4b328f0
3 changed files with 29 additions and 0 deletions
1
contrib/docker/.dockerignore
Normal file
1
contrib/docker/.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.git
|
21
contrib/docker/Dockerfile
Normal file
21
contrib/docker/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
FROM alpine:3.12.0
|
||||||
|
|
||||||
|
LABEL maintainer="sstefin@bk.ru"
|
||||||
|
|
||||||
|
#Installing all the dependencies
|
||||||
|
RUN apk add --no-cache gcc libsodium-dev make autoconf build-base
|
||||||
|
|
||||||
|
WORKDIR /mkp224o
|
||||||
|
|
||||||
|
COPY . /mkp224o/
|
||||||
|
|
||||||
|
RUN ./autogen.sh \
|
||||||
|
&& ./configure \
|
||||||
|
&& make \
|
||||||
|
&& cp /mkp224o/mkp224o /usr/local/bin/
|
||||||
|
|
||||||
|
VOLUME /root/data
|
||||||
|
|
||||||
|
WORKDIR /root/data
|
||||||
|
|
||||||
|
ENTRYPOINT ["mkp224o"]
|
7
contrib/docker/README.md
Normal file
7
contrib/docker/README.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# Usage
|
||||||
|
|
||||||
|
## Building Image Locally
|
||||||
|
`docker build -f contrib/docker/Dockerfile -t mkp224o .`
|
||||||
|
|
||||||
|
## Running Image Locally
|
||||||
|
`docker run -it -v $(pwd):/root/data mkp224o neko`
|
Loading…
Reference in a new issue