Skip to content

Instantly share code, notes, and snippets.

Last active Aug 13, 2020
What would you like to do?
Dockerfile for telethon python bots
FROM python:alpine
RUN chown nobody:nogroup /app \
&& apk add --no-cache --virtual .build-deps gcc build-base libffi-dev libressl-dev
ADD requirements.txt .
RUN pip install -r requirements.txt \
&& apk del .build-deps
COPY --chown=nobody:nogroup . .
USER nobody
ENTRYPOINT [ "python", "" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment