add Dockerfile for simple testing

This commit is contained in:
2019-10-22 14:26:52 -04:00
parent 36f3c27ebd
commit 15a221beac
+13
View File
@@ -0,0 +1,13 @@
FROM node:10
# gyp requires `--unsafe-perm`:
# https://stackoverflow.com/a/52658196/1438024
RUN npm install -g --unsafe-perm @dollarshaveclub/cloudworker
WORKDIR /app
COPY . .
EXPOSE 3000
ENTRYPOINT ["cloudworker"]
CMD ["index.js"]