HivisionIDPhotos/Dockerfile
2024-09-24 05:48:11 +08:00

21 lines
452 B
Docker

FROM python:3.10-slim
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt requirements-app.txt ./
RUN pip install --no-cache-dir -r requirements.txt -r requirements-app.txt
COPY . .
EXPOSE 7860
EXPOSE 8080
CMD ["python3", "-u", "app.py", "--host", "0.0.0.0", "--port", "7860"]