Spaces:
Runtime error
Runtime error
| FROM python:3.10 | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /home/user/app | |
| COPY . . | |
| RUN pip install --upgrade pip | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| RUN apt-get update | |
| RUN apt-get install -y libpangocairo-1.0-0 libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxi6 libxtst6 libnss3 libcups2 libxss1 libxrandr2 libasound2 libatk1.0-0 libgtk-3-0 | |
| RUN apt-get install -y libgbm-dev | |
| RUN apt-get install -y cron | |
| RUN apt-get install -y vim | |
| RUN apt-get install -y ffmpeg | |
| RUN apt-get install -y nodejs npm | |
| RUN chown -R user:user /home/user | |
| RUN chown -R user:user /usr/games | |
| RUN chown -R user:user /usr/local | |
| RUN chown -R user:user /usr/bin | |
| RUN chown -R user:user /var/ | |
| CMD ["python", "app.py"] | |