Been trying to land this Dockerfile to work properly but seems there's no human way for me to do so.
The directory where the Dockerfile is placed looks like this:
my_dir
|
|- Dockerfile
|- samplesdb
|- samplesdb/samples.bson
|- samplesdb/samples_metadata.json
Now, the Dockerfile looks like this:
FROM mongo
COPY . /dump/
WORKDIR /dump
CMD mongorestore --host 127.0.0.1 --port 27017 --db samplesdb --drop samples
However, it will always Failed: mongorestore target 'dump' invalid: stat dump: no such file or directory.
Is there any reason for this? How should I copy those dumps?