Spaces:
Runtime error
Runtime error
File size: 602 Bytes
724951e 2d5cfed 58bc21e 2d5cfed 4300eb1 58bc21e 2d5cfed 58bc21e 2d5cfed 724951e 58bc21e 3dd110c 4300eb1 724951e 58bc21e 4300eb1 2d5cfed 4300eb1 2d5cfed 58bc21e 2d5cfed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# Use the official Python image
FROM python:3.9-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Install system dependencies
RUN apt-get update && apt-get install -y \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements file and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Copy application files
COPY . .
# Expose necessary ports (if applicable)
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"]
|