| | FROM python:3.10-slim |
| |
|
| | |
| | RUN apt-get update && apt-get install -y redis-server supervisor && rm -rf /var/lib/apt/lists/* |
| |
|
| | |
| | COPY requirements.txt /tmp/ |
| | RUN pip install --no-cache-dir torch==2.2.2 --index-url https://download.pytorch.org/whl/cpu |
| | RUN pip install --no-cache-dir -r /tmp/requirements.txt |
| |
|
| | |
| | COPY . /app |
| | WORKDIR /app |
| |
|
| | |
| | RUN mkdir -p /etc/supervisor/conf.d |
| | COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf |
| |
|
| | |
| | EXPOSE 7860 |
| |
|
| | |
| | CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] |