CoolFace
Apppublic

ssmaitra/ExtraaLearn_API

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
Dockerfile17 linesDownload Raw Back to root
1FROM python:3.10-slim2 3# Set the working directory inside the container4WORKDIR /app5 6# Copy all files from the current directory to the container's working directory7COPY . .8 9# Install dependencies from the requirements file without using cache to reduce image size10RUN pip install --no-cache-dir --upgrade -r requirements.txt11 12# Define the command to start the application using Gunicorn with 4 worker processes13# - `-w 4`: Uses 4 worker processes for handling requests14# - `-b 0.0.0.0:7860`: Binds the server to port 7860 on all network interfaces15# - `app:app`: Runs the Flask app (assuming `app.py` contains the Flask instance named `app`)16CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:extraalearn_api"]17