File size: 1,131 Bytes
a197417
1dabd3c
 
 
 
 
2feb0f9
 
1dabd3c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2feb0f9
 
1dabd3c
 
 
 
eec9c02
09a0f84
 
1dabd3c
 
 
 
 
 
 
 
00db01d
705c349
00db01d
 
0a08d4d
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
37
38
39
40
41
42
43
44
45
46
FROM nvidia/cuda:11.3.1-base-ubuntu20.04
ENV DEBIAN_FRONTEND=noninteractive \
	TZ=Europe/Paris

# Remove any third-party apt sources to avoid issues with expiring keys.
# Install some basic utilities
RUN rm -f /etc/apt/sources.list.d/*.list && \
    apt-get update && apt-get install -y --no-install-recommends \
    curl \
    ca-certificates \
    sudo \
    git \
    wget \
    procps \
    git-lfs \
    zip \
    unzip \
    htop \
    vim \
    nano \
    bzip2 \
    libx11-6 \
    build-essential \
    libsndfile-dev \
    software-properties-common \
 && rm -rf /var/lib/apt/lists/*

RUN add-apt-repository ppa:flexiondotorg/nvtop && \
    apt-get upgrade -y && \
    apt-get install -y --no-install-recommends nvtop
    
RUN apt install -y python3
RUN apt install -y python3-pip

RUN curl -sL https://deb.nodesource.com/setup_14.x  | bash - && \
    apt-get install -y nodejs && \
    npm install -g configurable-http-proxy
WORKDIR /app


WORKDIR $HOME/app
COPY requirements.txt ./
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["python","./manage.py","runserver","0.0.0.0:7860"]