我需要通过Dockerfile在debian jessie上安装ffmeg
。Docker:如何通过Dockerfile添加backports到sources.list?
Debian建议使用backports。但我如何在Dockerfile中执行此操作?
添加
deb http://httpredir.debian.org/debian jessie-backports main non-free
deb-src http://httpredir.debian.org/debian jessie-backports main non-free
到
/etc/apt/sources.list
这是我Dockerfile看起来像:
FROM node:4.8-slim
COPY ./
## How to add backports to list ???
RUN apt-get update && apt-get install ffmpeg && ffmpeg -i
RUN (cd programs/server && npm install --silent)
CMD ["node", "main.js"]
相关:[如何在Debian中从shell中添加存储库](https://unix.stackexchange.com/questions/45879/how-to-add-repository-from-shell-in-debian) –