- COPY
Docker COPY welcome file
examples/ubuntu-copy-welcome/Dockerfile
FROM ubuntu:23.04 RUN apt-get update RUN apt-get install -y htop COPY welcome.txt .
docker build -t mydocker . docker run --rm -it mydocker
FROM ubuntu:23.04 RUN apt-get update RUN apt-get install -y htop COPY welcome.txt .
docker build -t mydocker . docker run --rm -it mydocker