Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile 1.3 KB

You have to be logged in to leave a comment. Sign In
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  1. # This is a sample Dockerfile you can modify to deploy your own app based on face_recognition
  2. FROM python:3.4-slim
  3. RUN apt-get -y update
  4. RUN apt-get install -y --fix-missing \
  5. build-essential \
  6. cmake \
  7. gfortran \
  8. git \
  9. wget \
  10. curl \
  11. graphicsmagick \
  12. libgraphicsmagick1-dev \
  13. libatlas-dev \
  14. libavcodec-dev \
  15. libavformat-dev \
  16. libboost-all-dev \
  17. libgtk2.0-dev \
  18. libjpeg-dev \
  19. liblapack-dev \
  20. libswscale-dev \
  21. pkg-config \
  22. python3-dev \
  23. python3-numpy \
  24. software-properties-common \
  25. zip \
  26. && apt-get clean && rm -rf /tmp/* /var/tmp/*
  27. RUN cd ~ && \
  28. mkdir -p dlib && \
  29. git clone -b 'v19.4' --single-branch https://github.com/davisking/dlib.git dlib/ && \
  30. cd dlib/ && \
  31. python3 setup.py install --yes USE_AVX_INSTRUCTIONS
  32. # The rest of this file just runs an example script.
  33. # If you wanted to use this Dockerfile to run your own app instead, maybe you would do this:
  34. # COPY . /root/your_app_or_whatever
  35. # RUN cd /root/your_app_or_whatever && \
  36. # pip3 install -r requirements.txt
  37. # RUN whatever_command_you_run_to_start_your_app
  38. COPY . /root/face_recognition
  39. RUN cd /root/face_recognition && \
  40. pip3 install -r requirements.txt && \
  41. python3 setup.py install
  42. CMD cd /root/face_recognition/examples && \
  43. python3 recognize_faces_in_pictures.py
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...