Skip to content

Instantly share code, notes, and snippets.

@JuniorJPDJ

JuniorJPDJ/Dockerfile

Last active Aug 13, 2020
Embed
What would you like to do?
Dockerfile for telethon python bots
FROM python:alpine
WORKDIR /app
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", "main.py" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment