Bot_test / Dockerfile
Futuresony's picture
Create Dockerfile
e073f8a verified
raw
history blame
576 Bytes
FROM python:3.10 # Choose a Python version compatible with your packages
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py . # Copy your Flask application file
# If you need to download spacy models or other assets on build
RUN python -m spacy download en_core_web_sm
# Command to run your Flask application using a production-ready WSGI server like Gunicorn
# This command tells Gunicorn to run the 'app' Flask instance found in 'app.py'
CMD exec gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 8 --timeout 0 app:app