Spaces:
Configuration error
Configuration error
| # # Use an official Python 3.10 runtime as a parent image | |
| # FROM python:3.10-slim | |
| # # Set the working directory in the container | |
| # WORKDIR /usr/src/app | |
| # # Copy the current directory contents into the container at /usr/src/app | |
| # COPY . . | |
| # # Install any needed packages specified in requirements.txt | |
| # RUN pip install --no-cache-dir -r requirements.txt | |
| # # Make port 7860 available to the world outside this container | |
| # EXPOSE 7860 | |
| # # Run app.py when the container launches | |
| # CMD ["python","./app.py"] | |
| # Use an official Python 3.10 runtime as a parent image | |
| FROM python:3.10-slim | |
| # Set the working directory in the container | |
| WORKDIR /usr/src/app | |
| # Copy the current directory contents into the container at /usr/src/app | |
| COPY . . | |
| # Install any needed packages specified in requirements.txt | |
| # RUN pip install -U pip | |
| # https://pypi.tuna.tsinghua.edu.cn/simple | |
| # RUN pip config set global.index-url http://mirrors.aliyun.com/pypi/simple | |
| # RUN pip config set install.trusted-host mirrors.aliyun.com | |
| RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple | |
| RUN pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN apt-get update && apt-get install -y libgl1-mesa-glx | |
| # Make port 7860 available to the world outside this container | |
| EXPOSE 7860 | |
| # Run app.py when the container launches | |
| CMD ["python", "./app.py"] | |