-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 900 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 900 Bytes
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
# Use an official Python runtime as a parent image
FROM python:3.6-slim
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
ADD . /app
RUN mkdir /app/models
# See https://www.pyimagesearch.com/2017/03/27/how-to-install-dlib/
RUN apt-get update && apt-get install -y \
build-essential cmake \
wget git vim \
#for ffmpeg
yasm pkg-config \
libgtk-3-dev \
libboost-all-dev \
tk-dev #see https://stackoverflow.com/questions/5459444/tkinter-python-may-not-be-configured-for-tk
# Compile and install ffmpeg from source
RUN git clone https://github.com/FFmpeg/FFmpeg /root/ffmpeg && \
cd /root/ffmpeg && \
./configure --enable-nonfree --disable-shared && \
make -j8 && make install -j8
# Install any needed packages specified in requirements.txt
RUN python setup.py develop
# Copy the models in the target models folders