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