diff --git a/contrib/docker/.dockerignore b/contrib/docker/.dockerignore new file mode 100644 index 0000000..6b8710a --- /dev/null +++ b/contrib/docker/.dockerignore @@ -0,0 +1 @@ +.git diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile new file mode 100644 index 0000000..97aaac3 --- /dev/null +++ b/contrib/docker/Dockerfile @@ -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"] diff --git a/contrib/docker/README.md b/contrib/docker/README.md new file mode 100644 index 0000000..1154fe9 --- /dev/null +++ b/contrib/docker/README.md @@ -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`