Spaces:
Runtime error
Runtime error
# Use Python as the base image | |
FROM python:3.9-slim | |
# Copy the app code into the container | |
COPY . /app | |
# Set the working directory to /app | |
WORKDIR /app | |
# Install necessary Python dependencies | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Expose port 5000 for the Flask app | |
EXPOSE 5000 | |
# Run the app using Python | |
CMD ["python", "app.py"] | |