From 914da82e68266ee6370aa8d6bb576ad78f778d9a Mon Sep 17 00:00:00 2001 From: Travis Reeder Date: Fri, 28 Jun 2019 18:59:58 +0000 Subject: [PATCH] Created dockerfile for generator --- .dockerignore | 2 ++ Dockerfile | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..93f136199 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +npm-debug.log diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..341e5f07d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:11 + +WORKDIR /usr/src/app + +# Putting the old one in here until the new one supports node +RUN npm install -g asyncapi-node-codegen + +# install dependencies +COPY package*.json ./ +RUN npm install + + +# copy code +COPY . . + +EXPOSE 8080 +CMD [ "node", "cli.js" ]