In my Dockerfile I have this line:
RUN ln -s /var/www/html/some_file /var/www/html/another_file
When running docker build all the steps are executed including the creation of the symbolic link, but when I start a container using the image created and check the folder /var/www/html/
I don't see the link there.
I tried searching online if this is something supported by docker and couldn't find an answer.
The content of the container is already available by another container image I am using with the FROM
instruction, so the file /var/www/html/some_file
is not on my machine.
No Volumes are involved. This is the Dockerfile:
FROM piwik:3.2.1-apache
RUN apt update
RUN ln -s /var/www/html/some_file /var/www/html/another_file
CMD [ "apache2-foreground" ]