clip-embedder / Dockerfile
akashD22's picture
Create Dockerfile
e4e4c48 verified
raw
history blame contribute delete
297 Bytes
FROM python:3.10-slim
# Install dependencies
RUN apt-get update && apt-get install -y libglib2.0-0 && \
pip install --no-cache-dir fastapi uvicorn transformers torch pillow
# Copy code
COPY . /app
WORKDIR /app
# Run FastAPI
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]