1
2
RUN apt-get update
RUN apt-get install ffmpeg libsm6 libxext6 -y

完整的一个python37的dockerfile

1
2
3
4
5
6
7
8
9
10
11
12
FROM python:3.7

RUN apt-get update
RUN apt-get install ffmpeg libsm6 libxext6 -y

COPY Makefile requirements.txt ./
RUN make install
COPY . ./

EXPOSE 8080

CMD ["make", "run"]