Skip to content
Snippets Groups Projects
Commit 4d37857e authored by nimrod's avatar nimrod
Browse files

Replace base image with Debian.

There are binary wheels of lxml for libc based OSes.
parent 4b10fda4
No related branches found
No related tags found
No related merge requests found
Pipeline #1561 passed
# hadolint ignore=DL3006 # hadolint ignore=DL3006
FROM registry.shore.co.il/cron as supersonic 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/ COPY --from=supersonic /usr/local/bin/supersonic /usr/local/bin/
# hadolint ignore=DL3018 # hadolint ignore=DL3008,DL3013
RUN apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
git \
gosu \ gosu \
; libxml2 \
# hadolint ignore=DL3013 libxslt1.1 \
RUN pip install --no-cache-dir pipenv procps \
wget \
&& \
rm -rf /tmp/* /var/tmp/* /var/cache/apt/archives/* /var/lib/apt/lists/* && \
pip install --no-cache-dir pipenv
WORKDIR /poquita WORKDIR /poquita
ENV HOME /poquita ENV HOME /poquita
COPY Pipfile* ./ COPY Pipfile* ./
# hadolint ignore=DL3018 RUN pipenv install --deploy --system
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 RUN mkdir --mode 777 db Podcasts
COPY --chown=root:root crontab ./ COPY --chown=root:root crontab ./
COPY --chown=root:root poca.xml ./ COPY --chown=root:root poca.xml ./
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment