Below is my Dockerfile
#DockerfileCron
FROM node:6
RUN mkdir /www
COPY . /www
WORKDIR /www
RUN apt-get update && apt-get install -y cron
CMD ["cron", "-f"]
When I build an image based on this Dockerfile, the command COPY just copy Dockerfile and ignore all other files in the folder.
# construção das imagens
docker build -t job/job_cronjob - < DockerfileCron
# executa o cron
docker run -d \
--name job_cronjob job/job_cronjob
Can anyone help me with this?