demo2 / Dockerfile
Karthik15's picture
Create Dockerfile
70673b5 verified
raw
history blame contribute delete
366 Bytes
# Use a minimal Python image
FROM python:3.9-slim
# Set the working directory inside the container
WORKDIR /app
# Copy all project files into the container
COPY . /app
# Install required dependencies
RUN pip install --no-cache-dir flask flask-cors huggingface_hub
# Expose port 8000 for Flask
EXPOSE 8000
# Command to run the Flask app
CMD ["python", "app.py"]