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
WORKDIR /home
COPY ./* ./
ENV mode=home
EXPOSE 3000

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

CMD /usr/bin/perl /home/./myapp.pl daemon -p -m development -l http://0.0.0.0:3000

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,

Mike.

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.