Kangarroar commited on
Commit
2de6d9f
1 Parent(s): af21fc4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -16
Dockerfile CHANGED
@@ -9,38 +9,23 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
9
  python3.9 \
10
  python3-pip \
11
  git \
 
12
  && apt-get clean && rm -rf /var/lib/apt/lists/*
13
-
14
- WORKDIR $HOME/app
15
-
16
  COPY ./requirements.txt /app/requirements.txt
17
  COPY ./packages.txt /app/packages.txt
18
-
19
  RUN pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
20
  RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
21
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
22
- RUN pip3 install --no-binary :all: --no-use-pep517 pyworld
23
-
24
 
25
  WORKDIR /app
26
  # Set up a new user named "user" with user ID 1000
27
  RUN useradd -m -u 1000 user
28
-
29
- # Switch to the "user" user
30
- USER user
31
-
32
- # Set home to the user's home directory
33
- ENV HOME=/home/user \
34
- PATH=/home/user/.local/bin:$PATH
35
-
36
  # Set the working directory to the user's home directory
37
  WORKDIR $HOME/app
38
 
39
-
40
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
41
  COPY --chown=user . $HOME/app
42
 
43
-
44
  EXPOSE 8501
45
  CMD nvidia-smi -l
46
  CMD streamlit run app.py --server.maxUploadSize 1024 --server.enableWebsocketCompression=false --server.enableXsrfProtection=false
 
9
  python3.9 \
10
  python3-pip \
11
  git \
12
+ ffmpeg \
13
  && apt-get clean && rm -rf /var/lib/apt/lists/*
 
 
 
14
  COPY ./requirements.txt /app/requirements.txt
15
  COPY ./packages.txt /app/packages.txt
 
16
  RUN pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
17
  RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
18
  RUN pip3 install --no-cache-dir -r /app/requirements.txt
 
 
19
 
20
  WORKDIR /app
21
  # Set up a new user named "user" with user ID 1000
22
  RUN useradd -m -u 1000 user
 
 
 
 
 
 
 
 
23
  # Set the working directory to the user's home directory
24
  WORKDIR $HOME/app
25
 
 
26
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
27
  COPY --chown=user . $HOME/app
28
 
 
29
  EXPOSE 8501
30
  CMD nvidia-smi -l
31
  CMD streamlit run app.py --server.maxUploadSize 1024 --server.enableWebsocketCompression=false --server.enableXsrfProtection=false