Switched to using alpine
This commit is contained in:
parent
d2717ac371
commit
4eec260fa7
10
Dockerfile
10
Dockerfile
@ -1,11 +1,15 @@
|
|||||||
FROM python:2
|
FROM alpine:3.6
|
||||||
|
|
||||||
ADD . /moto/
|
ADD . /moto/
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
WORKDIR /moto/
|
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
|
EXPOSE 5000
|
||||||
|
Loading…
Reference in New Issue
Block a user