| FROM nikolaik/python-nodejs:python3.10-nodejs19 | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends ffmpeg \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY . /app/ | |
| WORKDIR /app/ | |
| RUN pip3 install --no-cache-dir -U pip redis fastapi nest-asyncio uvicorn && \ | |
| pip3 install --no-cache-dir -r requirements.txt | |
| RUN touch log.txt | |
| RUN chown -R 1000:0 /app /usr && \ | |
| chmod -R 755 /app /usr && \ | |
| chmod 777 /app/log.txt && \ | |
| chmod +x /app/start.sh | |
| CMD bash start.sh |