Spaces:
Sleeping
Sleeping
File size: 422 Bytes
5e15428 bb51b44 5e15428 bb51b44 5e15428 bb51b44 5e15428 bb51b44 5e15428 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Use official Python base image
FROM python:3.9-slim
# Set working directory inside the container
WORKDIR /app
# Copy requirements file
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Expose the port (will be overridden by PORT environment variable if set)
EXPOSE 7860
# Command to run the Flask app
CMD ["python", "2api.py"]
|