wetdog commited on
Commit
1c06787
1 Parent(s): 9afeca7

Delete dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -48
  2. README.md +1 -0
Dockerfile DELETED
@@ -1,48 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.10.12-slim
3
-
4
- # Install required packages for building eSpeak and general utilities
5
- RUN apt-get update && apt-get install -y \
6
- build-essential \
7
- autoconf \
8
- automake \
9
- libtool \
10
- pkg-config \
11
- git \
12
- cmake \
13
- ffmpeg \
14
- && rm -rf /var/lib/apt/lists/*
15
-
16
-
17
- RUN pip install --upgrade pip
18
-
19
- RUN mkdir -p cache && chmod 777 cache
20
-
21
- RUN useradd -m -u 1000 user
22
-
23
- USER user
24
-
25
- ENV HOME=/home/user \
26
- PATH=/home/user/.local/bin:$PATH
27
-
28
- # Set the working directory to the user's home directory
29
- WORKDIR $HOME/app
30
- # Onnx install
31
-
32
- COPY --chown=user requirements.txt $HOME/app/
33
-
34
- RUN pip install -r requirements.txt
35
-
36
-
37
- COPY --chown=user . $HOME/app/
38
-
39
- # Fix ownership issues
40
- USER root
41
- RUN chown -R user:user $HOME/app
42
- USER user
43
-
44
- EXPOSE 7860
45
-
46
- CMD ["python3", "-u", "app.py"]
47
-
48
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -4,6 +4,7 @@ emoji: ⚡
4
  colorFrom: red
5
  colorTo: gray
6
  sdk: gradio
 
7
  pinned: false
8
  license: apache-2.0
9
  ---
 
4
  colorFrom: red
5
  colorTo: gray
6
  sdk: gradio
7
+ app_file: app.py
8
  pinned: false
9
  license: apache-2.0
10
  ---