File size: 659 Bytes
813ce50
 
 
 
 
 
 
974d749
 
813ce50
 
 
974d749
 
 
1867327
c3aebd9
974d749
 
813ce50
 
32a90d9
974d749
32a90d9
813ce50
974d749
 
813ce50
 
974d749
 
32a90d9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM python:3.12-slim

RUN apt-get update && \
    apt-get upgrade -y && \
    apt-get install ffmpeg libsm6 libxext6 -y && \
    apt-get clean

# ---- Install the dependancies
#
COPY requirements.txt /
RUN pip install --no-cache-dir -r requirements.txt

# ---- RUN python
# ---- Will execute nltk.download('wordnet')
#
RUN [ "python", "-c", "import nltk; nltk.download('wordnet', download_dir='/usr/local/nltk_data')" ]

# ---- Copy the code files
#
COPY src /

# ---- Listen to port 7860
#
EXPOSE 7860

# ---- Define the working dir in the contener
#
WORKDIR /

# ---- Commande to start the app
# ----
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "main:app"]