https://github.com/opencv/cvat
Raw File
Tip revision: 07de7141edbc980031da857579128088f7a4630a authored by Nikita Manovich on 29 May 2020, 15:11:47 UTC
Release 1.0.0 (#1335)
Tip revision: 07de714
Dockerfile.ci
FROM cvat

ENV DJANGO_CONFIGURATION=testing
USER root

RUN curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
    echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list && \
    curl https://deb.nodesource.com/setup_9.x | bash - && \
    apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -yq \
        apt-utils \
        build-essential \
        google-chrome-stable \
        nodejs \
        python3-dev \
        ruby \
        && \
    rm -rf /var/lib/apt/lists/*;

RUN python3 -m pip install --no-cache-dir -r /tmp/requirements/${DJANGO_CONFIGURATION}.txt && \
    python3 -m pip install --no-cache-dir coveralls
RUN gem install coveralls-lcov

COPY .coveragerc .

# RUN all commands below as 'django' user
USER ${USER}

RUN mkdir -p tests && cd tests && npm install \
        eslint \
        eslint-detailed-reporter \
        karma \
        karma-chrome-launcher \
        karma-coveralls \
        karma-coverage \
        karma-junit-reporter \
        karma-qunit \
        qunit; \
    echo "export PATH=~/tests/node_modules/.bin:${PATH}" >> ~/.bashrc;

ENTRYPOINT []
back to top