Spaces:
Sleeping
Sleeping
File size: 383 Bytes
1b87395 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# Use official Python base image
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy the current directory contents into the container
COPY . /app
# Install dependencies
RUN pip install --upgrade pip \
&& pip install flask
# Expose the port Flask runs on
EXPOSE 7860
# Start the Flask app
CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]
|