Skip to content
Snippets Groups Projects
Dockerfile 740 B
Newer Older
nimrod's avatar
nimrod committed
# hadolint ignore=DL3006
nimrod's avatar
nimrod committed
FROM registry.shore.co.il/cron as supersonic
FROM registry.hub.docker.com/library/python:3.6-alpine3.13
COPY --from=supersonic /usr/local/bin/supersonic /usr/local/bin/
nimrod's avatar
nimrod committed
# hadolint ignore=DL3013
RUN pip install --no-cache-dir pipenv
WORKDIR /poquita
COPY Pipfile* ./
nimrod's avatar
nimrod committed
# hadolint ignore=DL3018
RUN apk add --update --no-cache --virtual .lxml-build build-base 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
nimrod's avatar
nimrod committed
COPY --chown=root:root crontab ./
COPY --chown=root:root poca.xml ./
VOLUME db Podcasts
CMD [ "supersonic", "crontab" ]
USER nobody
HEALTHCHECK CMD pgrep supersonic