extraa-learn-backend / Dockerfile
RajendrakumarPachaiappan's picture
Upload folder using huggingface_hub
d4b1ea9 verified
raw
history blame contribute delete
490 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container
COPY . /app
# Install dependencies, including Gunicorn
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install gunicorn # Ensure Gunicorn is installed
# Expose port for Flask app
EXPOSE 8501
# Command to run the Flask app with Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:8501", "app:app"]