Skip to content

Commit

Permalink
Merge pull request #104 from humanmade/docker
Browse files Browse the repository at this point in the history
Add Dockerfile
  • Loading branch information
roborourke authored Dec 6, 2019
2 parents aab6aed + afc14e3 commit 55b57f7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM lambci/lambda:nodejs10.x
COPY node_modules/ /var/task/node_modules
COPY server.js /var/task/
COPY index.js /var/task

ARG AWS_REGION
ARG AWS_S3_BUCKET
ARG AWS_S3_ENDPOINT
ARG PORT

# Start the reactor
EXPOSE ${PORT:-8080}
ENTRYPOINT /var/lang/bin/node server.js ${PORT:-8080}
3 changes: 3 additions & 0 deletions hooks/pre_build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
# Build node_modules
docker run --rm -v `pwd`:/var/task lambci/lambda:build-nodejs10.x npm install --production

0 comments on commit 55b57f7

Please sign in to comment.