From adbc8311f1c4bb4837cb1c6c56374553c5e781c5 Mon Sep 17 00:00:00 2001 From: cbermudez97 Date: Wed, 3 Apr 2019 13:49:50 -0400 Subject: [PATCH] [skyapi] refs #14 - Add rules to create the docker image and run it --- Makefile | 6 ++++++ docker/Dockerfile | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 621bc22..319b468 100644 --- a/Makefile +++ b/Makefile @@ -9,3 +9,9 @@ build_node_client: build_tester: (cd './dev/tester/' && npm run setup) + +docker_build: + docker build -t skyapi/typescript -f ./docker/Dockerfile . + +docker_run: + docker run -v ${PWD}/dev/tester:/skyapi-typescript/dev/tester -it --name=skyapi-typescript skyapi/typescript diff --git a/docker/Dockerfile b/docker/Dockerfile index f1e1360..ac736e0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,8 +18,4 @@ RUN (cd ./dev/lib/skyapi/typescript-axios/ && npm run build ) RUN (cd ./dev/lib/skyapi/typescript-node/ && npm run build ) -COPY dev/tester ./dev/tester - -RUN (cd ./dev/tester/ && npm install) - CMD ["bash"]