kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
25 wiersze
856 B
Docker
25 wiersze
856 B
Docker
FROM python:3.6
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
# Requirements have to be pulled and installed here, otherwise caching won't work
|
|
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; \
|
|
grep "^[^#;]" requirements.apt | \
|
|
grep -Fv "python3-dev" | \
|
|
xargs apt-get install -y --no-install-recommends; \
|
|
rm -rf /usr/share/doc/* /usr/share/locale/*
|
|
|
|
RUN mkdir /requirements
|
|
COPY ./requirements/base.txt /requirements/base.txt
|
|
RUN pip install -r /requirements/base.txt
|
|
COPY ./requirements/local.txt /requirements/local.txt
|
|
RUN pip install -r /requirements/local.txt
|
|
COPY ./requirements/test.txt /requirements/test.txt
|
|
RUN pip install -r /requirements/test.txt
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
ENTRYPOINT ["compose/django/dev-entrypoint.sh"]
|