Can't copy into image

Hi all.

I’m trying to learn docker and I don’t seem to be able to copy files into the image.

I’ve got a very simple Dockerfile:

FROM ubuntu
COPY ./* ./
ENV mode=home

RUN ls -la
WORKDIR /home/app
RUN ls -la

CMD /usr/bin/perl /home/./ daemon -p -m development -l

However, after I build it and run it interactively, I don’t see any files in /home.

docker run -p 3000:3000 -di ubuntu

What am I missing?

Thanks in advance,


PS. I’m using Docker version 20.10.12, build 20.10.12-0ubuntu2~20.04.1

You just run a container from the base image and not from the newly built image.