Vishal47's picture
Create Dockerfile
094f6d8
# Use the official Python image as the base image
FROM python:3.8-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the requirements file to the container
COPY requirements.txt .
# Install required packages
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire project directory into the container
COPY . .
# Expose port 5000 for the Flask app
EXPOSE 5000
# Start the Flask app
CMD ["python", "app.py"]