cabot/Dockerfile
Jean-Fred Berthelot a68c2f6b5d Add test coverage support
- Split out requirements in two files
  (testing and main)

- Add Bash script running test with coverage

- Add .coveragerc configuration file,
  including Django coverage plugin

- Add post-build to Travis script running CodeCov
2016-12-22 11:09:43 +00:00

37 lines
675 B
Docker

FROM python:2.7
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
RUN apt-get update && apt-get install -y \
python-dev \
libsasl2-dev \
libldap2-dev \
libpq-dev \
npm
RUN npm install -g \
--registry http://registry.npmjs.org/ \
coffee-script \
less@1.3
RUN ln -s `which nodejs` /usr/bin/node
RUN pip install --upgrade pip
COPY requirements.txt ./
COPY requirements-dev.txt ./
RUN pip install --no-cache-dir -r requirements-dev.txt
COPY requirements-plugins.txt ./
RUN pip install --no-cache-dir -r requirements-plugins.txt
RUN pip install ipdb
ADD . /code/
ENTRYPOINT ["./docker-entrypoint.sh"]