diff --git a/Dockerfile b/Dockerfile index 38ee10e4c8fe8153c3b861fbc273a27b12e436cb..b8d82282b7199887bfbfe9a2fb93173cb4ff0b54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,24 @@ # hadolint ignore=DL3006 FROM registry.shore.co.il/cron as supersonic -FROM registry.hub.docker.com/library/python:3.6-alpine3.13 +FROM registry.hub.docker.com/library/python:3.6-slim-buster COPY --from=supersonic /usr/local/bin/supersonic /usr/local/bin/ -# hadolint ignore=DL3018 -RUN apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \ +# hadolint ignore=DL3008,DL3013 +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + git \ gosu \ - ; -# hadolint ignore=DL3013 -RUN pip install --no-cache-dir pipenv + libxml2 \ + libxslt1.1 \ + procps \ + wget \ + && \ + rm -rf /tmp/* /var/tmp/* /var/cache/apt/archives/* /var/lib/apt/lists/* && \ + 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 pipenv install --deploy --system RUN mkdir --mode 777 db Podcasts COPY --chown=root:root crontab ./ COPY --chown=root:root poca.xml ./