lawapi / Dockerfile
chaithanyashaji's picture
Update Dockerfile
5daeec4 verified
raw
history blame
471 Bytes
# Base image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy project files
COPY . .
# Install system dependencies
RUN apt-get update && apt-get install -y libfaiss-dev && rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
ENV TRANSFORMERS_CACHE=/app/cache
# Expose the application port
EXPOSE 8000
# Run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]