Outils pour utilisateurs

Outils du site


tech:docker_exemple_de_dockerfile_pour_debian

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tech:docker_exemple_de_dockerfile_pour_debian [2025/05/31 18:35] Jean-Baptistetech:docker_exemple_de_dockerfile_pour_debian [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Debian Docker}}
 +
 +# 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:jessie
 +
 +#ENV http_proxy  http://192.168.56.1:3128
 +#ENV https_proxy http://192.168.56.1:3128
 +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://jpetazzo.github.io/2013/10/06/policy-rc-d-do-not-start-services-automatically/
 +RUN echo -e '#!/bin/bash\nexit 101' > /usr/sbin/policy-rc.d
 +RUN chmod +x /usr/sbin/policy-rc.d
 +
 +RUN echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list
 +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 ["/usr/bin/supervisord", "-c",  "/etc/supervisor/supervisord.conf",  "-n"]
 +~~~
 +
 +~~~bash
 +docker build -t plop --build-arg http_proxy=http://192.168.56.1:3128 --build-arg https_proxy=http://192.168.56.1:3128 .
 +~~~
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki