sign-Language / Dockerfile
morefaat69's picture
Update Dockerfile
0c11ac1 verified
Raw
History Blame Contribute Delete
722 Bytes
# Base image
FROM python:3.11-slim
# System deps needed by OpenCV & MediaPipe
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
&& rm -rf /var/lib/apt/lists/*
# Working directory
WORKDIR /app
# Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# App code
COPY app.py .
# models/asl_landmark_cnn_lstm_model.keras ← English
# models/arsl_landmark_cnn_lstm_model.keras ← Arabic
COPY models/ ./models/
# HuggingFace Spaces uses port 7860
EXPOSE 7860
# Start
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]