Spaces:
Sleeping
Sleeping
File size: 423 Bytes
275e79c 0032ec0 275e79c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# Use an official Python runtime as a parent image
FROM python:3.12-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt ./
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy the entire project
COPY . .
# Expose port (adjust as necessary)
EXPOSE 7860
# Command to run the Flask app
CMD ["python", "app/app.py"]
|