EDIT: I figured it out: I built the container without the run command, and it seems that it had downloaded miniconda as ' Miniconda.sh' with a space -.- so all my other commands were missing. Thank you!
This is my Dockerfile.
#
# Building a docker image with the latest ubuntu version and basic python install
#
# latest ubuntu version
FROM ubuntu:latest
# information about maintainer
MAINTAINER yves
# add the bash script
ADD install.sh /
# change rights for the script
RUN chmod u+x /install.sh
# run the bash script
RUN /install.sh
# prepend the new path
ENV PATH /root/miniconda3/bin:$PATH
# execute IPython when container is run
CMD ["ipython"]
When I build with
docker build -t pyalgo:basic .
However, it shows in the logs that not every command is executing.
Only four commands are executed in the log:
=> CACHED [1/4] FROM docker.io/library/ubuntu:latest 0.0s
=> [2/4] ADD install.sh / 0.0s
=> [3/4] RUN chmod u+x /install.sh 0.3s
=> [4/4] RUN /install.sh
I have tried to find out why this is happening but I don't get it. It seems to be finding the file and everything.
EDIT: I tried using the following advice about --progress, but it still seems to only use 4 commands: enter image description here