From 3644543ff0744051c73484968683c3790d07e44a Mon Sep 17 00:00:00 2001 From: Mahesh Asolkar Date: Sun, 26 Jan 2020 17:52:16 -0800 Subject: [PATCH] Clone git repo from Dockerfile --- Dockerfile | 7 ++----- README.md | 9 +++++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index c57f025..33110bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,10 @@ FROM node:13 WORKDIR /usr/src/app # Install app dependencies -COPY package*.json ./ +RUN git clone https://git.heshapps.com/asolkar/mma-ask-app.git . RUN npm install -# RUN NPM ci --only=production - -# Bundle app source -COPY . . +# RUN npm ci --only=production EXPOSE 3000 CMD ["node", "ask.js"] diff --git a/README.md b/README.md index a28f15e..ad568c6 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,12 @@ # Run docker container - % docker run --publish 49330:3000 --detach + % docker run --publish 49330:3000 --detach mahesh/mma-ask-app + 7e4dfed65d776e3c8cd8e5c6e970699b561bbbc6f2d63d5d75b7ee68c9672358 + +# Get a shell in running container + + % docker exec --interactive --tty 7e4dfed65d776e3c8cd8e5c6e970699b561bbbc6f2d63d5d75b7ee68c9672358 /bin/bash # Manage docker containers @@ -37,4 +42,4 @@ ``` % docker rm d511b20c73d6 -``` \ No newline at end of file +```