Zhofang commited on
Commit
752c551
·
verified ·
1 Parent(s): 1b9f22e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -30,8 +30,6 @@ RUN rm -f /etc/apt/sources.list.d/*.list && \
30
  software-properties-common \
31
  && rm -rf /var/lib/apt/lists/*
32
 
33
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
34
-
35
  RUN add-apt-repository ppa:flexiondotorg/nvtop && \
36
  apt-get upgrade -y && \
37
  apt-get install -y --no-install-recommends nvtop
@@ -42,6 +40,7 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
42
 
43
  # Create a working directory
44
  WORKDIR /app
 
45
 
46
  # Create a non-root user and switch to it
47
  RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
 
30
  software-properties-common \
31
  && rm -rf /var/lib/apt/lists/*
32
 
 
 
33
  RUN add-apt-repository ppa:flexiondotorg/nvtop && \
34
  apt-get upgrade -y && \
35
  apt-get install -y --no-install-recommends nvtop
 
40
 
41
  # Create a working directory
42
  WORKDIR /app
43
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
44
 
45
  # Create a non-root user and switch to it
46
  RUN adduser --disabled-password --gecos '' --shell /bin/bash user \