1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
FROM python:3.6-alpine3.7 RUN apk add --update tini git RUN mkdir /bot COPY . /bot WORKDIR /bot ENV LIBRARY_PATH=/lib:/usr/lib RUN pip install pipenv RUN pipenv install --deploy --system ENTRYPOINT ["/sbin/tini", "--"] CMD ["python", "-m", "bot"]