Spaces:
Runtime error
Runtime error
File size: 448 Bytes
094f6d8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# 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"]
|