Skip to content
Snippets Groups Projects
Dockerfile.test 598 B
Newer Older
Eliot Berriot's avatar
Eliot Berriot committed
FROM python:3.5
ENV PYTHONDONTWRITEBYTECODE  1

# Requirements have to be pulled and installed here, otherwise caching won't work
COPY ./requirements.apt /requirements.apt
COPY ./install_os_dependencies.sh /install_os_dependencies.sh
RUN bash install_os_dependencies.sh install
RUN mkdir /requirements
Eliot Berriot's avatar
Eliot Berriot committed
COPY ./requirements/base.txt /requirements
RUN pip install -r /requirements/base.txt
COPY ./requirements/local.txt /requirements
RUN pip install -r /requirements/local.txt
Eliot Berriot's avatar
Eliot Berriot committed
COPY ./requirements/test.txt /requirements
RUN pip install -r /requirements/test.txt

WORKDIR /app