Spaces:
Sleeping
Sleeping
File size: 358 Bytes
95576a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM python:3.9
RUN useradd -m -u 1000 user
WORKDIR /app
COPY --chown=user . /app
RUN pip install -r requirements.txt
RUN pip install --upgrade accelerate
RUN pip uninstall -y transformers accelerate
RUN pip install transformers accelerate
RUN mkdir -p /app/logs
RUN chmod 777 /app/logs
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |