moto/Dockerfile

23 lines
443 B
Docker
Raw Normal View History

2017-09-19 08:29:05 +00:00
FROM alpine:3.6
2015-09-15 22:25:12 +00:00
2017-09-27 21:07:18 +00:00
RUN apk add --no-cache --update \
gcc \
musl-dev \
python3-dev \
libffi-dev \
openssl-dev \
python3
2015-09-15 22:25:12 +00:00
ADD . /moto/
ENV PYTHONUNBUFFERED 1
WORKDIR /moto/
2017-09-27 21:07:18 +00:00
RUN python3 -m ensurepip && \
2017-09-19 08:29:05 +00:00
rm -r /usr/lib/python*/ensurepip && \
pip3 --no-cache-dir install --upgrade pip setuptools && \
pip3 --no-cache-dir install ".[server]"
2015-09-15 22:25:12 +00:00
2017-09-19 19:30:54 +00:00
ENTRYPOINT ["/usr/bin/moto_server", "-H", "0.0.0.0"]
2015-09-15 22:25:12 +00:00
EXPOSE 5000