tdsroe1 / Dockerfile
Pranjan007's picture
Create Dockerfile
0c263d1 verified
Raw
History Blame Contribute Delete
446 Bytes
# Use a standard Python 3.9 image
FROM python:3.9-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file first and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all your other files (app.py, .csv) into the container
COPY . .
# Expose the port that Hugging Face expects
EXPOSE 7860
# The command to run your application
CMD ["python", "app.py"]