Dockerfile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. FROM python:3.11.3
  2. RUN apt-get -y update
  3. RUN apt-get install --no-install-recommends -y --fix-missing \
  4. build-essential \
  5. cmake \
  6. gfortran \
  7. git \
  8. wget \
  9. curl \
  10. graphicsmagick \
  11. libgraphicsmagick1-dev \
  12. libatlas-base-dev \
  13. libavcodec-dev \
  14. libavformat-dev \
  15. libgtk2.0-dev \
  16. libjpeg-dev \
  17. liblapack-dev \
  18. libswscale-dev \
  19. pkg-config \
  20. python3-dev \
  21. python3-numpy \
  22. software-properties-common \
  23. zip \
  24. && apt-get clean && rm -rf /tmp/* /var/tmp/*
  25. WORKDIR /usr/src/app
  26. COPY requirements.txt .
  27. RUN pip install --no-cache-dir -r requirements.txt
  28. COPY fr_flask*.py ./
  29. COPY wsgi*.py ./
  30. COPY face_recognition_svm.py ./
  31. COPY application_data ./
  32. COPY data ./
  33. COPY application_data/verification_images ./application_data/
  34. COPY application_data/input_image ./application_data/
  35. COPY data/train ./data/
  36. COPY *.sh ./
  37. WORKDIR /usr/src/app
  38. RUN ls -la
  39. RUN ls -R application_data
  40. RUN ls -R data
  41. RUN chmod +x *.sh
  42. RUN python face_recognition_svm.py
  43. EXPOSE 8349
  44. CMD ["/usr/src/app/run.sh", "--no-venv"]