-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
30 lines (24 loc) · 926 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ubuntu
WORKDIR /usr/src/app
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y build-essential && \
apt-get install -y git ninja-build ccache libopenblas-dev libopencv-dev cmake && \
apt-get install -y gcc mono-mcs g++ && \
apt-get install -y python3 python3-pip && \
apt-get install -y default-jdk && \
apt-get install -y libhdf5-dev && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install --upgrade pip setuptools wheel
# Install & install requirements
COPY requirements-dev0.txt ./requirements-dev0.txt
COPY requirements-dev1.txt ./requirements-dev1.txt
COPY requirements.txt ./requirements.txt
RUN pip3 install -r requirements-dev0.txt
RUN pip3 install -r requirements-dev1.txt
RUN pip3 install -r requirements.txt
# Copy library source
COPY modelstore ./modelstore
COPY tests ./tests
# Run tests
ENTRYPOINT ["python3", "-m", "pytest", "--exitfirst", "./tests"]