Skip to content
Snippets Groups Projects
Select Git revision
  • 125c81cb78217724f6c60ada81573bc6319ddb9f
  • master default protected
  • renovate/configure
3 results

Dockerfile

Blame
  • Forked from Uni-Film-Club / Programm-Info-Bot
    15 commits behind the upstream repository.
    Tilman Vatteroth's avatar
    Tilman Vatteroth authored
    55d45176
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 498 B
    FROM python:3-alpine
    
    RUN apk upgrade --available --update
    RUN apk add --no-cache msmtp tzdata
    
    RUN adduser --uid 1000 --disabled-password bot bot
    
    COPY requirements.txt /usr/src/app/requirements.txt
    
    RUN apk add --no-cache build-base && \
        pip install --no-cache-dir -r /usr/src/app/requirements.txt && \
        apk del build-base
    
    COPY src /usr/src/app
    COPY run.sh /usr/local/bin/run.sh
    COPY crontab /var/spool/cron/crontabs/bot
    RUN chmod +x /usr/local/bin/run.sh
    
    CMD ["crond", "-f", "-l", "0"]