quamble / Dockerfile
raj-tomar001's picture
Update Dockerfile
5329dd4 verified
raw
history blame contribute delete
314 Bytes
# Use official Python base image
FROM python:3.9
# Set working directory
WORKDIR /app
# Copy project files
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
# Expose the required port (Spaces default is 7860)
EXPOSE 7860
# Run the Flask app
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]