LLM / Dockerfile
MasteredUltraInstinct's picture
Update Dockerfile
0f74b93 verified
raw
history blame contribute delete
282 Bytes
FROM python:3.10-slim
# Install dependencies
RUN pip install --no-cache-dir fastapi uvicorn transformers
# Create writable cache dir
RUN mkdir -p /data/cache
# Copy app
COPY app.py /app/app.py
WORKDIR /app
# Run
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]