Skip to content

Commit

Permalink
add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Nov 21, 2018
1 parent 9553d60 commit 06a70b7
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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", "*" ]

0 comments on commit 06a70b7

Please sign in to comment.