DR_DISEASE_DETECTION / dockerfile
doomslayer1434's picture
Update dockerfile
ce62338 verified
raw
history blame contribute delete
377 Bytes
# Use official Python image
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the app code and model/tokenizer
COPY . .
# Expose the port Hugging Face expects
EXPOSE 7860
# Run the Flask app with Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]