Dockerfile 643 B

12345678910111213141516171819202122232425
  1. FROM python:alpine
  2. ENV PIP_NO_CACHE_DIR=off \
  3. PIP_DISABLE_PIP_VERSION_CHECK=on
  4. ARG API_TOKEN
  5. ARG GITHUB_TOKEN
  6. ENV GITHUB_TOKEN=$GITHUB_TOKEN
  7. ENV API_TOKEN=$API_TOKEN
  8. RUN apk add --no-cache --virtual .build-deps gcc musl-dev libffi-dev curl
  9. RUN apk add --no-cache git git-lfs expect
  10. WORKDIR /app
  11. ADD requirements.txt /app
  12. RUN pip install --no-cache-dir -r requirements.txt
  13. RUN apk del .build-deps
  14. RUN echo "0 0 * * 1 /bin/sh /app/scripts/backup_db.sh" >> /var/spool/cron/crontabs/root
  15. RUN git config --global user.name "metya"
  16. RUN git config --global user.email "metya.tm@gmail.com"
  17. ADD . /app
  18. ENTRYPOINT crond && python vanitybot.py