Switched to using alpine

This commit is contained in:
Terry Cain 2017-09-19 09:29:05 +01:00
parent d2717ac371
commit 4eec260fa7
No known key found for this signature in database
GPG Key ID: 14D90844E4E9B9F3

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"]
EXPOSE 5000