Skip to content
Snippets Groups Projects
Select Git revision
  • master default
  • debian
2 results

Dockerfile

Blame
    • nimrod's avatar
      080bcd3e
      Update to Python 3.12. · 080bcd3e
      nimrod authored
      - Update the Dockerfile.
      - Update the Pipfile.
      - Remove docker-compose as it's not maintained as a Python package
        anymore.
      080bcd3e
      History
      Update to Python 3.12.
      nimrod authored
      - Update the Dockerfile.
      - Update the Pipfile.
      - Remove docker-compose as it's not maintained as a Python package
        anymore.
    Dockerfile 1.04 KiB
    # hadolint ignore=DL3006
    FROM registry.shore.co.il/cron as supercronic
    
    FROM docker.io/library/python:3.12-alpine3.20
    COPY --from=supercronic /usr/local/bin/supercronic /usr/local/bin/
    # hadolint ignore=DL3018
    RUN apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
            gosu \
        ;
    # hadolint ignore=DL3013,DL3059
    RUN pip install --no-cache-dir pipenv
    WORKDIR /poquita
    ENV HOME /poquita
    COPY Pipfile* ./
    # hadolint ignore=DL3018
    RUN apk add --update --no-cache --virtual .lxml-build build-base git libxslt-dev && \
        pipenv install --deploy --system && \
        apk del .lxml-build && \
        apk add --update --no-cache --virtual .lxml-runtime libxml2 libxslt
    RUN mkdir --mode 777 db Podcasts
    COPY --chown=root:root crontab ./
    COPY --chown=root:root poca.xml ./
    COPY --chown=root:root kodi_scan /usr/local/bin/
    COPY --chown=root:root entrypoint /usr/local/sbin/docker-entrypoint
    VOLUME /poquita/db /poquita/Podcasts
    ENTRYPOINT ["docker-entrypoint"]
    CMD [ "supercronic", "crontab" ]
    HEALTHCHECK CMD pgrep supercronic