Merge pull request #2939 from redyvon/master

Update Dockerfile
This commit is contained in:
Steve Pulec 2020-07-26 15:35:42 -05:00 committed by GitHub
commit 1eda31cb76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,22 +1,12 @@
FROM alpine:3.6
RUN apk add --no-cache --update \
gcc \
musl-dev \
python3-dev \
libffi-dev \
openssl-dev \
python3
FROM python:3.7-slim
ADD . /moto/
ENV PYTHONUNBUFFERED 1
WORKDIR /moto/
RUN python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 --no-cache-dir install --upgrade pip setuptools && \
RUN pip3 --no-cache-dir install --upgrade pip setuptools && \
pip3 --no-cache-dir install ".[server]"
ENTRYPOINT ["/usr/bin/moto_server", "-H", "0.0.0.0"]
ENTRYPOINT ["/usr/local/bin/moto_server", "-H", "0.0.0.0"]
EXPOSE 5000