Dockerfile 319 B

12345678910111213
  1. FROM python:alpine
  2. RUN apk update && apk add --no-cache supervisor
  3. RUN pip install schedule requests
  4. ADD etc/supervisord.conf /etc/supervisord.conf
  5. ADD app/main.py /app/main.py
  6. RUN adduser -D collector
  7. RUN chown collector:collector /app -R
  8. USER collector
  9. CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]