Dockerfile: Unterschied zwischen den Versionen

Aus robopagex.com
Zur Navigation springen Zur Suche springen
Zeile 14: Zeile 14:
 
   '' RUN apt-get update && \ ''
 
   '' RUN apt-get update && \ ''
 
   ''    apt-get upgrade -y ''
 
   ''    apt-get upgrade -y ''
''RUN EXECUTE ON BUILD''
+
''RUN execute on build, multiple run possible''
 +
 
 +
  '' CMD ''
 +
''Only one at the end''

Version vom 16. Juni 2021, 19:24 Uhr

Dockerfile

Erstellen eines Docker Image

 Dockerfile >> *Build* >> Docker Image >> *Run* >>> Docker Container

# BASIS IMAGE

  FROM alpine:latest 
  LABEL name="test alpine" 
  LABEL version="1.0" 
  LABEL description="a new alpine image" 
  LABEL maintainer="robopagex.com" 
  RUN apt-get update && \ 
      apt-get upgrade -y 

RUN execute on build, multiple run possible

  CMD 

Only one at the end