funquail/api/docker/Dockerfile.test

24 lines
856 B
Text
Raw Normal View History

FROM python:3.6
ENV PYTHONUNBUFFERED 1
# Requirements have to be pulled and installed here, otherwise caching won't work
2018-02-18 22:06:10 +01:00
RUN echo 'deb http://httpredir.debian.org/debian/ jessie-backports main' > /etc/apt/sources.list.d/ffmpeg.list
COPY ./requirements.apt /requirements.apt
2018-03-03 10:05:39 +01: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/*
RUN mkdir /requirements
2017-12-16 16:22:46 +01:00
COPY ./requirements/base.txt /requirements/base.txt
RUN pip install -r /requirements/base.txt
2017-12-16 16:22:46 +01:00
COPY ./requirements/local.txt /requirements/local.txt
RUN pip install -r /requirements/local.txt
2017-12-16 16:22:46 +01:00
COPY ./requirements/test.txt /requirements/test.txt
RUN pip install -r /requirements/test.txt
2018-03-03 10:52:48 +01:00
COPY . /app
WORKDIR /app
ENTRYPOINT ["compose/django/dev-entrypoint.sh"]