From 06a70b752fee106ccbb9e587b08ead87e2f9867d Mon Sep 17 00:00:00 2001 From: noogen Date: Wed, 21 Nov 2018 14:28:16 -0600 Subject: [PATCH] add docker --- .dockerignore | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 10 ++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0d4740c --- /dev/null +++ b/.dockerignore @@ -0,0 +1,53 @@ +# Logs +logs +*.log +npm-debug.log* + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules +jspm_packages + +# Optional npm cache directory +.npm + +# Optional REPL history +.node_repl_history + +# vim +.*.sw* +Session.vim + +# Serverless +.webpack +.serverless + +# Jetbrains IDEs +.idea + +# misc +.DS_Store + +tests/*config.json diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..67a8555 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM node:8.10 + +WORKDIR /app + +COPY . /app/ +RUN npm install + +EXPOSE 5000 + +ENTRYPOINT [ "node", "--inspect=0.0.0.0:9777", "--nolazy", "./node_modules/.bin/sls", "offline", "start", "--host", "0.0.0.0", "--port", "5000", "--corsAllowOrigin", "*" ]