Chethu commited on
Commit
c50f4cd
1 Parent(s): f8cea28

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -14
Dockerfile CHANGED
@@ -1,6 +1,5 @@
1
  FROM python:3.9-slim
2
 
3
-
4
  RUN useradd -m -u 1000 user
5
  USER user
6
  ENV HOME=/home/user \
@@ -8,20 +7,15 @@ ENV HOME=/home/user \
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 sudo apt-get install espeak
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"]
 
1
  FROM python:3.9-slim
2
 
 
3
  RUN useradd -m -u 1000 user
4
  USER user
5
  ENV HOME=/home/user \
 
7
  WORKDIR $HOME/app
8
 
9
  COPY --chown=user . $HOME/app
10
+ COPY ./requirements.txt $HOME/app/requirements.txt
11
 
12
  USER root
13
+ RUN apt-get update && \
14
+ apt-get install -y wget zip unzip espeak && \
15
+ apt-get clean && \
16
+ rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
17
 
18
+ USER user
19
+ RUN pip install --no-cache-dir -r requirements.txt
20
 
21
+ CMD ["python", "app.py"]