Dockerfile: Unterschied zwischen den Versionen

Aus robopagex.com
Zur Navigation springen Zur Suche springen
Zeile 16: Zeile 16:
 
''RUN execute on build, multiple run possible''
 
''RUN execute on build, multiple run possible''
  
   '' CMD ''
+
   '' CMD ["/bin/bash"]''
 
''Only one at the end''
 
''Only one at the end''

Version vom 16. Juni 2021, 19:25 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 ["/bin/bash"]

Only one at the end