medelharchaoui commited on
Commit
04e459f
·
verified ·
1 Parent(s): 9c6e277

Create Dockerfile for Espeak-ng installation

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+
4
+ RUN useradd -m -u 1000 user
5
+ USER user
6
+ ENV HOME=/home/user \
7
+ PATH=/home/user/.local/bin:$PATH
8
+ WORKDIR $HOME/app
9
+
10
+ COPY --chown=user . $HOME/app
11
+ COPY ./requirements.txt ~/app/requirements.txt
12
+
13
+ USER root
14
+ RUN rm /var/lib/apt/lists/* -vf
15
+ RUN apt-get clean
16
+ RUN apt-get update
17
+ RUN apt-get upgrade
18
+ RUN apt-get install -y wget zip unzip uvicorn espeak-ng
19
+ USER user
20
+ COPY . .
21
+ USER root
22
+ RUN chmod 777 ~/app/*
23
+ USER user
24
+
25
+ RUN pip3 install -r requirements.txt
26
+
27
+ CMD ["python", "app.py"]