Merge pull request #1160 from terrycain/dockerfile

Shrink Dockerfile
This commit is contained in:
Jack Danger 2017-09-21 10:53:32 -07:00 committed by GitHub
commit 08fcb0e760

View File

@ -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", "-H", "0.0.0.0"]
EXPOSE 5000