Docker Community Forums

Share and learn in the Docker community.

Copy file to a stateful Set

Hi
New to docker so bear with me.

Configuration
Github : dockerfile
Using Openshift

I have am creating a stateful set using a dockerfile that resided in github. We would like to copy a file from the githib repository when creating the container /opt directory.

docker file :

USER 0
FROM docker.io/bitnami/mongodb:3.6.23-debian-9-r48
RUN mkdir -p /opt/test2
ADD < file src> /opt/test2
USER 1001

The mkdir does not work, and directory is not created.
No errors during the build process.

Any help appreciated.
TIA

USER 1001