funkwhale/api/Dockerfile

23 wiersze
904 B
Docker
Czysty Zwykły widok Historia

FROM python:3.5
ENV PYTHONUNBUFFERED 1
# Requirements have to be pulled and installed here, otherwise caching won't work
2018-02-18 21:06:10 +00:00
RUN echo 'deb http://httpredir.debian.org/debian/ jessie-backports main' > /etc/apt/sources.list.d/ffmpeg.list
COPY ./requirements.apt /requirements.apt
RUN apt-get update -qq && grep "^[^#;]" requirements.apt | xargs apt-get install -y
RUN curl -L https://github.com/acoustid/chromaprint/releases/download/v1.4.2/chromaprint-fpcalc-1.4.2-linux-x86_64.tar.gz | tar -xz -C /usr/local/bin --strip 1
2017-12-16 15:22:46 +00:00
COPY ./requirements/base.txt /requirements/base.txt
2017-12-16 14:19:08 +00:00
RUN pip install -r /requirements/base.txt
2017-12-16 15:22:46 +00:00
COPY ./requirements/production.txt /requirements/production.txt
RUN pip install -r /requirements/production.txt
COPY . /app
# Since youtube-dl code is updated fairly often, we split it here
RUN pip install --upgrade youtube-dl
WORKDIR /app
ENTRYPOINT ["./compose/django/entrypoint.sh"]