From 4eec260fa71da4134baa601e7cbfeeae1816146c Mon Sep 17 00:00:00 2001 From: Terry Cain Date: Tue, 19 Sep 2017 09:29:05 +0100 Subject: [PATCH] Switched to using alpine --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 72657903e..895831bee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,15 @@ -FROM python:2 +FROM alpine:3.6 ADD . /moto/ ENV PYTHONUNBUFFERED 1 WORKDIR /moto/ -RUN pip install ".[server]" +RUN apk add --no-cache python3 && \ + python3 -m ensurepip && \ + rm -r /usr/lib/python*/ensurepip && \ + pip3 --no-cache-dir install --upgrade pip setuptools && \ + pip3 --no-cache-dir install ".[server]" -CMD ["moto_server"] +ENTRYPOINT ["/usr/bin/moto_server"] EXPOSE 5000