mirror of
https://github.com/viq/NewsBlur.git
synced 2025-04-13 09:38:09 +00:00
30 lines
1 KiB
Docker
30 lines
1 KiB
Docker
FROM python:3.9-slim
|
|
WORKDIR /srv/newsblur
|
|
ENV PYTHONPATH=/srv/newsblur
|
|
RUN set -ex \
|
|
&& rundDeps=' \
|
|
libpq5 \
|
|
libjpeg62 \
|
|
libxslt1.1 \
|
|
' \
|
|
&& buildDeps=' \
|
|
patch \
|
|
gfortran \
|
|
libblas-dev \
|
|
libffi-dev \
|
|
libjpeg-dev \
|
|
libpq-dev \
|
|
libreadline6-dev \
|
|
liblapack-dev \
|
|
libxml2-dev \
|
|
libxslt1-dev \
|
|
ncurses-dev \
|
|
zlib1g-dev \
|
|
' \
|
|
&& apt-get update \
|
|
&& apt-get install -y $rundDeps $buildDeps --no-install-recommends
|
|
COPY config/requirements.txt /srv/newsblur/
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
RUN pip cache purge
|
|
RUN apt-get purge -y --auto-remove ${buildDeps}
|
|
RUN rm -rf /var/lib/apt/lists/*
|