From 8e178d6b43239b371d1e76ead55be259eba15cab Mon Sep 17 00:00:00 2001 From: cbermudez97 Date: Sat, 30 Mar 2019 12:20:54 -0400 Subject: [PATCH] [skyapi] refs #14 - Create Dockerfile and .dockerignore files --- docker/.dockerignore | 1 + docker/Dockerfile | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 docker/.dockerignore create mode 100644 docker/Dockerfile diff --git a/docker/.dockerignore b/docker/.dockerignore new file mode 100644 index 0000000..05a4a44 --- /dev/null +++ b/docker/.dockerignore @@ -0,0 +1 @@ +*/node_modules \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..6d850a6 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,21 @@ +FROM node + +WORKDIR /skyapi-typescript + +COPY ../dev/lib/skyapi/typescript-axios/package*.json ./skyapi-axios/ + +COPY ../dev/lib/skyapi/typescript-node/package*.json ./skyapi-node/ + +RUN (cd ./skyapi-axios/ && npm install) + +RUN (cd ./skyapi-node/ && npm install) + +COPY ../dev/lib/skyapi/typescript-axios/* ./skyapi-axios/ + +COPY ../dev/lib/skyapi/typescript-node/* ./skyapi-node/ + +RUN (cd ./skyapi-axios/ && npm run build) + +RUN (cd ./skyapi-node/ && npm run build) + +CMD ["bash"]