Dockerfile 290 B

123456789101112131415
  1. FROM python:3.8-slim
  2. RUN apt-get update && \
  3. apt-get -y install libglib2.0; \
  4. apt-get clean
  5. WORKDIR /app
  6. COPY ./facedetect/requirements.txt .
  7. RUN pip install -r requirements.txt
  8. COPY ./facedetect .
  9. EXPOSE 80
  10. CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]