diff --git a/data/docker.md b/data/docker.md index 0334925..70a9245 100644 --- a/data/docker.md +++ b/data/docker.md @@ -78,7 +78,10 @@ View Other Docker Container Command | `docker container COMMAND` ``` #### What is Docker Compose File? -Run Docker Compose File : `docker compose up` +Command | description +------- | -------- +Build Docker Image | `docker-compose build` +Start the Docker Container | `docker compose up` ### Docker Compose Sample File ``` diff --git a/package.json b/package.json index f1c0cb6..b312d62 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "server": "http-server -p 12345 -c-1 -o", "start": "nodemon -x \"npm run server\"", - "docker": "docker compose up" + "docker": "docker-compose build && docker compose up" }, "node-version": { "node": "16.15.1"