Sign-language / Dockerfile
Figea's picture
Modification port Dockerfile
24fe94c
raw
history blame
647 Bytes
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
# Will execute nltk.download('wordnet')
#COPY post_install.py .
#RUN python post_install.py
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 5000
# Define the working dir in the contener
WORKDIR /
# Commande to start the app
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "main:app"]