2017-06-23 21:00:42 +00:00
|
|
|
FROM python:3.5
|
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
|
|
|
# Requirements have to be pulled and installed here, otherwise caching won't work
|
|
|
|
|
|
|
|
COPY ./requirements.apt /requirements.apt
|
|
|
|
RUN apt-get update -qq && grep "^[^#;]" requirements.apt | xargs apt-get install -y
|
|
|
|
|
|
|
|
|
2017-12-16 14:19:08 +00:00
|
|
|
COPY ./requirements/base.txt /requirements
|
|
|
|
RUN pip install -r /requirements/base.txt
|
|
|
|
COPY ./requirements/production.txt /requirements
|
2017-06-23 21:00:42 +00:00
|
|
|
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"]
|