2018-03-25 21:30:46 +00:00
|
|
|
FROM python:3.6
|
2017-06-23 21:00:42 +00:00
|
|
|
|
|
|
|
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
|
2017-06-23 21:00:42 +00:00
|
|
|
COPY ./requirements.apt /requirements.apt
|
2018-03-03 09:05:39 +00:00
|
|
|
RUN apt-get update; \
|
|
|
|
grep "^[^#;]" requirements.apt | \
|
|
|
|
grep -Fv "python3-dev" | \
|
|
|
|
xargs apt-get install -y --no-install-recommends; \
|
|
|
|
rm -rf /usr/share/doc/* /usr/share/locale/*
|
|
|
|
|
2017-12-26 20:12:37 +00:00
|
|
|
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-06-25 14:45:33 +00:00
|
|
|
|
|
|
|
RUN mkdir /requirements
|
2017-12-16 15:22:46 +00:00
|
|
|
COPY ./requirements/base.txt /requirements/base.txt
|
2017-06-25 14:45:33 +00:00
|
|
|
RUN pip install -r /requirements/base.txt
|
2017-12-16 15:22:46 +00:00
|
|
|
COPY ./requirements/local.txt /requirements/local.txt
|
2017-06-23 21:00:42 +00:00
|
|
|
RUN pip install -r /requirements/local.txt
|
2017-12-16 15:22:46 +00:00
|
|
|
COPY ./requirements/test.txt /requirements/test.txt
|
2017-06-23 21:00:42 +00:00
|
|
|
RUN pip install -r /requirements/test.txt
|
|
|
|
|
2018-03-03 09:52:48 +00:00
|
|
|
COPY . /app
|
2017-06-23 21:00:42 +00:00
|
|
|
WORKDIR /app
|
2018-03-12 22:07:08 +00:00
|
|
|
ENTRYPOINT ["compose/django/dev-entrypoint.sh"]
|