-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
25 lines (20 loc) · 919 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
FROM python:3.9-buster
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV DEBIAN_FRONTEND=noninteractive
# Install Node.js and ffmpeg
RUN echo "deb https://deb.nodesource.com/node_16.x buster main" > /etc/apt/sources.list.d/nodesource.list && \
wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
apt-get update && \
apt-get install -yqq nodejs ffmpeg --no-install-recommends && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set work directory and copy code files
WORKDIR /code
COPY . .
# Install Python dependencies
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Download protobuf python library from source
RUN curl -L https://raw.githubusercontent.com/protocolbuffers/protobuf/main/python/google/protobuf/internal/builder.py \
-o /usr/local/lib/python3.9/site-packages/google/protobuf/internal/builder.py