-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
27 lines (20 loc) · 761 Bytes
/
Dockerfile
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
FROM python:3.7-bullseye
WORKDIR /app
# Install dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y ffmpeg cmake swig libavcodec-dev libavformat-dev
RUN ln -s /usr/bin/ffmpeg /usr/local/bin/ffmpeg
# Other configurations
RUN echo "set enable-bracketed-paste off" >> ~/.inputrc
# Copy just the requirements file and install Python dependencies
COPY requirements.txt ./
RUN pip install --upgrade pip
RUN pip install -U https://tf.novaal.de/btver1/tensorflow-2.3.1-cp37-cp37m-linux_x86_64.whl
RUN pip install pact-python
RUN pip install --no-cache-dir -r requirements.txt
# Run NLTK download
RUN python3 -c 'import nltk; nltk.download("punkt")'
# Finally copy the entire app
COPY . .
# Command to run
CMD ["make", "run"]