Kangarroar commited on
Commit
82e5fc6
1 Parent(s): 95ec93c

Delete Dockerfile.back

Browse files
Files changed (1) hide show
  1. Dockerfile.back +0 -35
Dockerfile.back DELETED
@@ -1,35 +0,0 @@
1
- FROM nvidia/cuda:12.0.0-base-ubuntu20.04
2
- ARG DEBIAN_FRONTEND=noninteractive
3
- ENV PYTHONUNBUFFERED=1
4
-
5
- WORKDIR /app
6
- # Install python, git & ffmpeg
7
- RUN apt-get update && apt-get install --no-install-recommends -y \
8
- build-essential \
9
- python3.8=3.8.10* \
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 --upgrade pip
17
- RUN pip install pyproject-toml
18
- 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
19
- RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
20
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
21
- RUN pip3 install --no-cache-dir numba==0.56.3
22
- RUN pip install --no-binary :all: pyworld
23
-
24
- WORKDIR /app
25
- # Set up a new user named "user" with user ID 1000
26
- RUN useradd -m -u 1000 user
27
- # Set the working directory to the user's home directory
28
- WORKDIR $HOME/app
29
-
30
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
31
- COPY --chown=user . $HOME/app
32
-
33
- EXPOSE 8501
34
- CMD nvidia-smi -l
35
- CMD streamlit run app.py --server.maxUploadSize 1024 --server.enableWebsocketCompression=false --server.enableXsrfProtection=false