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

Dockerfile

Blame
  • Forked from Uni-Film-Club / Programm-Info-Bot
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 406 B
    FROM python:3-alpine
    
    RUN apk upgrade --available --update
    
    WORKDIR /usr/src/app
    COPY requirements.txt ./
    
    RUN apk add --no-cache build-base && \
        pip install --no-cache-dir -r requirements.txt && \
        apk del build-base
    
    COPY src .
    COPY run.sh /usr/local/bin/run.sh
    COPY crontab /var/spool/cron/crontabs/programbot
    RUN chmod +x /usr/local/bin/run.sh
    
    RUN apk add --no-cache msmtp
    
    CMD ["crond", "-f"]