thejagstudio commited on
Commit
dc595cb
·
verified ·
1 Parent(s): 1dabd3c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -4,8 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
4
 
5
  # Remove any third-party apt sources to avoid issues with expiring keys.
6
  # Install some basic utilities
7
- RUN rm -f /etc/apt/sources.list.d/*.list && \
8
- apt-get update && apt-get install -y --no-install-recommends \
9
  curl \
10
  ca-certificates \
11
  sudo \
@@ -22,8 +21,7 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
22
  libx11-6 \
23
  build-essential \
24
  libsndfile-dev \
25
- software-properties-common \
26
- && rm -rf /var/lib/apt/lists/*
27
 
28
  RUN add-apt-repository ppa:flexiondotorg/nvtop && \
29
  apt-get upgrade -y && \
@@ -56,8 +54,7 @@ RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39
56
 
57
  WORKDIR $HOME/app
58
  COPY requirements.txt ./
59
- RUN python -m pip install libtorrent
60
- RUN pip install -r requirements.txt
61
  COPY . .
62
  EXPOSE 7860
63
  CMD ["python","./manage.py","runserver","0.0.0.0:7860"]
 
4
 
5
  # Remove any third-party apt sources to avoid issues with expiring keys.
6
  # Install some basic utilities
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
 
8
  curl \
9
  ca-certificates \
10
  sudo \
 
21
  libx11-6 \
22
  build-essential \
23
  libsndfile-dev \
24
+ software-properties-common
 
25
 
26
  RUN add-apt-repository ppa:flexiondotorg/nvtop && \
27
  apt-get upgrade -y && \
 
54
 
55
  WORKDIR $HOME/app
56
  COPY requirements.txt ./
57
+ RUN conda install --yes --file requirements.txt
 
58
  COPY . .
59
  EXPOSE 7860
60
  CMD ["python","./manage.py","runserver","0.0.0.0:7860"]