tech:docker_exemple_de_dockerfile_pour_debian
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:docker_exemple_de_dockerfile_pour_debian [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:docker_exemple_de_dockerfile_pour_debian [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Docker exemple de Dockerfile pour Debian | ||
| + | |||
| + | Voir : | ||
| + | * [[Docker image build]] | ||
| + | * [[ansible_vagrant_et_docker|Exemple de Dockerfile basé sur Debian]] | ||
| + | |||
| + | Voir aussi Alpine | ||
| + | |||
| + | `Dockerfile` | ||
| + | ~~~bash | ||
| + | FROM debian: | ||
| + | |||
| + | #ENV http_proxy | ||
| + | #ENV https_proxy http:// | ||
| + | ARG https_proxy | ||
| + | ARG http_proxy | ||
| + | |||
| + | ENV DEBIAN_FRONTEND noninteractive | ||
| + | ENV TERM linux | ||
| + | ENV LANG C.UTF-8 | ||
| + | ENV LANGUAGE C.UTF-8 | ||
| + | ENV LC_ALL C.UTF-8 | ||
| + | |||
| + | # https:// | ||
| + | RUN echo -e '# | ||
| + | RUN chmod +x / | ||
| + | |||
| + | RUN echo "deb http:// | ||
| + | RUN (apt-get update && apt-get upgrade -y -q && apt-get dist-upgrade -y -q && apt-get -y -q autoclean && apt-get -y -q autoremove) | ||
| + | RUN apt-get install -q -y --no-install-recommends python-minimal tmux bash locales sudo vim supervisor | ||
| + | |||
| + | RUN (locale-gen fr_FR.UTF-8 UTF-8 && dpkg-reconfigure locales) | ||
| + | |||
| + | ENTRYPOINT ["/ | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | docker build -t plop --build-arg http_proxy=http:// | ||
| + | ~~~ | ||
| + | |||
