pegasus-summary-lm / Dockerfile
satyam998's picture
Initial commit
95576a3
raw
history blame contribute delete
358 Bytes
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"]