2 changed files with 5 additions and 3 deletions
@ -1,4 +1,4 @@
|
||||
FROM mongo:latest |
||||
|
||||
COPY seed.json /seed.json |
||||
CMD mongoimport --host mongodb --db pokemon --collection Pokemon --drop --type json --file /seed.json --jsonArray |
||||
CMD mongoimport -u root -p example --authenticationDatabase admin --host mongodb --db pokemon --collection Pokemon --drop --type json --file /seed.json --jsonArray |
||||
Loading…
Reference in new issue