Copiar archivo(s) a imagen creada
# modificacion Dockerfile en ubicacion de la copia
FROM ubuntu
RUN mkdir app
RUN cd /app && touch data.txt
COPY ./src/hola.txt /app/src/com/hola.txt
# guardar cambios en raiz archivos a copiar y generar imagen
cd copy
docker image build -t ubuntu-file:v2 .
# salida
Sending build context to Docker daemon 3.072kB
Step 1/4 : FROM ubuntu
---> 72300a873c2c
Step 2/4 : RUN mkdir app
---> Using cache
---> e6755560ff34
Step 3/4 : RUN cd /app && touch data.txt
---> Using cache
---> ff1c74b8cdce
Step 4/4 : COPY ./src/hola.txt /app/src/com/hola.txt
---> 8f79ad4d8c95
Successfully built 8f79ad4d8c95
Successfully tagged ubuntu-file:v2Copiar carpeta con archivo(s)/carpeta(s) a imagen creada
Agregar archivo(s)/carpeta(s) con alguna operacion a imagen creada
Última actualización