Browse Source

more docker

ekardnam 4 years ago
parent
commit
308e06b9bb
3 changed files with 3 additions and 4 deletions
  1. 2 0
      .dockerignore
  2. 0 3
      Dockerfile
  3. 1 1
      bot.js

+ 2 - 0
.dockerignore

@@ -0,0 +1,2 @@
+node_modules
+npm-debug.log

+ 0 - 3
Dockerfile

@@ -12,7 +12,4 @@ RUN npm install
 # Bundle app source
 COPY . .
 
-# Has to be changed according to config
-EXPOSE 8000
-
 CMD [ "node", "app.js" ]

+ 1 - 1
bot.js

@@ -191,7 +191,7 @@ let bot = {
                 }).catch(err => { console.error(err) })
             } else {
               this.twitterPost(`${this.twitterFormat(status.content)} \n\n ${status.uri}`)
-              .then(() => console.log(`[INFO] Tweeted ${this.twitterFormat(status.content)}`))
+              .then(() => console.log(`[INFO] Tweeted ${this.twitterFormat(status.content)} \n\n ${status.uri}`))
             }
           })