-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
36 lines (27 loc) · 975 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
31
32
33
34
35
36
FROM continuumio/miniconda3
WORKDIR /work
RUN apt-get update && apt-get -y upgrade && \
apt-get install -y --no-install-recommends \
git && \
rm -rf /var/lib/apt/lists/*
RUN conda create -n av python=3.10
# Make RUN commands use the new environment:
RUN echo "conda activate av" >> ~/.bashrc
SHELL ["/bin/bash", "--login", "-c"]
COPY . .
RUN pip install -e '.[dev]' # dev reqs needed for tests
# Check if installation was succesful
RUN auto-verify --version
RUN auto-verify install nnenum
# RUN auto-verify install abcrown
# RUN auto-verify install verinet
# RUN auto-verify install ovalbab
RUN echo $'set +euo pipefail \n\
conda activate av \n\
set -euo pipefail' > ./entrypoint.sh
RUN chmod +x entrypoint.sh
# Integration tests, should fail if installing went wrong.
# No GPU on gh-actions
RUN if ! python -m pytest tests -v -m "not verifier"; then exit 1; fi
ENTRYPOINT ["./entrypoint.sh"]
# Clean up all images: docker rmi -f $(docker images -aq)