File size: 736 Bytes
a0bd5e7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy model files
COPY . .
# Expose port
EXPOSE 8000
# Add labels for metadata
LABEL maintainer="LISA Team"
LABEL description="LISA AI - Developed in Kenya, Africa"
LABEL version="3.5"
LABEL origin="Kenya, East Africa"
# Set environment variables
ENV PYTHONPATH=/app
ENV LISA_MODEL_PATH=/app
# Health check
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8000/ || exit 1
# Run the application
CMD ["python", "deploy.py", "--host", "0.0.0.0", "--port", "8000"]
|