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" ]