nicoorfi
1/16/2020 - 9:45 AM

Debian build image


# Install wget
apt-get update && apt-get install -y wget
 
# Test localy
docker run -v /var/run/docker.sock:/var/run/docker.sock --cap-add=NET_ADMIN -it debian bas
 
# Install docker
wget https://get.docker.com -O - | sh
 
#Start docker daemon
service docker start

cd /home
 
# Download Dockerfile nginx
wget https://raw.githubusercontent.com/nginxinc/docker-nginx/0f2f33169297d7571d733f3a9122e3486704c859/mainline/buster/Dockerfile
 
# Build image with arguments
docker build --build-arg name=johndoe --build-arg=password=somepassword .
 
#Tag image
 
#Push image