diff --git a/.travis.yml b/.travis.yml index 289b05f..9a16f12 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ install: before_script: # Build docker image - docker build -t adyen-card-tester . - - docker run -d -p 127.0.0.1:80:5000 -e ADYEN_KEY="adyen public key" --name adyen-card-tester adyen-card-tester + - docker run -d -p 127.0.0.1:80:4444 -e ADYEN_KEY="adyen public key" --name adyen-card-tester adyen-card-tester - wget --quiet 127.0.0.1:80 script: diff --git a/Dockerfile b/Dockerfile index 781703a..a5bde93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,4 +12,6 @@ COPY app.js . COPY js js COPY views views +EXPOSE 4444 + CMD [ "node", "app.js" ] diff --git a/README.md b/README.md index 7c404a3..0a4cb71 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ docker pull imacatlol/adyen-card-tester Then run the container with the following command and replace ```ADYEN_KEY``` with your Adyen public key. ```bash docker run -d --name adyen-card-tester \ - -p 127.0.0.1:4444:5000 \ + -p 127.0.0.1:4444:4444 \ -e ADYEN_KEY="adyen public key" \ imacatlol/adyen-card-tester ``` diff --git a/app.js b/app.js index 1e9d1cb..144d369 100644 --- a/app.js +++ b/app.js @@ -21,6 +21,6 @@ app.get('/cvc', function(req, res) { res.render('cvc', { apiKey: apiKey, cardActive: '', cvcActive: 'active' }) }); -server = app.listen(5000) +server = app.listen(4444) module.exports = server