Merge pull request #40 from iamstefin/contrib-docker

Added Docker support
This commit is contained in:
cathugger 2020-09-04 17:27:05 +00:00 committed by GitHub
commit 9eb4b328f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1 @@
.git

21
contrib/docker/Dockerfile Normal file
View 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
View 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`