FROM python:3.5 MAINTAINER Tinpee ADD . /src WORKDIR /src RUN pip install --upgrade pip \ && pip install flask gunicorn COPY entrypoint.sh / RUN sed -i 's/\r$//' /entrypoint.sh RUN chmod +x /entrypoint.sh VOLUME /src/db EXPOSE 8000 CMD ["/entrypoint.sh"]