From ae584e216164d47f4a64d3f26dad07abc77a9a81 Mon Sep 17 00:00:00 2001 From: pataquets Date: Tue, 10 Dec 2019 22:35:31 +0100 Subject: [PATCH 1/2] Dockerfile initial version. --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f3f8216 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:2 + +COPY . /usr/src/elasticstat/ +WORKDIR /usr/src/elasticstat/ + +RUN pip install --no-cache . + +ENTRYPOINT [ "python", "./elasticstat/elasticstat.py" ] +CMD [ "--help" ] From 0fa38904fda0ac3786cf1ad01ff5225fe11f6b37 Mon Sep 17 00:00:00 2001 From: pataquets Date: Wed, 15 Jan 2020 19:01:08 +0100 Subject: [PATCH 2/2] Dockerfile: Use Python 'slim' base image to make resulting image smaller. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f3f8216..2a29181 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:2 +FROM python:2-slim COPY . /usr/src/elasticstat/ WORKDIR /usr/src/elasticstat/