Spaces:
Runtime error
Runtime error
| FROM python:3.7.10 | |
| RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list && \ | |
| sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list && \ | |
| sed -i '/buster-updates/d' /etc/apt/sources.list | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| libsm6 \ | |
| libxext6 \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| COPY --chown=user requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip==22.3.1 | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |