Arunmass's picture
Update Dockerfile
289d3b2 verified
raw
history blame contribute delete
502 Bytes
# Use Python 3.11 to support the newer versions of scikit-image
FROM python:3.11-slim
# Set the working directory in the container
WORKDIR /app
# Copy requirements and install them
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose the port Hugging Face uses
EXPOSE 7860
# Define environment variables for Flask
ENV FLASK_APP=main.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_RUN_PORT=7860
# Run the app
CMD ["flask", "run"]