-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (16 loc) · 806 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#########################################################
## Python Environment with CUDA
#########################################################
FROM nvidia/cuda:11.3.0-devel-ubuntu20.04 AS python_base_cuda
LABEL MAINTAINER="Jovinder Singh: https://github.com/jovi-s/"
# Update system and install wget
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y wget ffmpeg libpython3.8 git sudo
# Install Conda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh --quiet && \
bash ~/miniconda.sh -b -p /opt/conda
ENV PATH "/opt/conda/bin:${PATH}" && conda install python=3.8
# Install all anomalib requirements
COPY ./requirements.txt ./requirements.txt
RUN pip install -r ./requirements.txt
# Run Dashboard
CMD ["python", "main.py"]