From cf502e5bf5b5dfc8146e58394e1e36e52cda378e Mon Sep 17 00:00:00 2001 From: timmyichen Date: Fri, 18 Oct 2019 21:46:42 -0400 Subject: [PATCH] Revert "add dockerfile, update installation instructions in README" This reverts commit 8075dc4c61ed5f59ff9d98d6116fe62cfc9e611e. --- Dockerfile | 9 --------- README.md | 8 +++++++- docker-compose.yml | 3 ++- 3 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 372e7b7f1c..0000000000 --- a/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM node:10-alpine - -WORKDIR /usr/chapter/ - -COPY . . - -RUN npm install - -EXPOSE 8000 \ No newline at end of file diff --git a/README.md b/README.md index 15090c1289..d64a31e887 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,13 @@ We will focus on building an open API first. Then developers can use the API to Requirements: Docker, internet access -Run the following command: +Install dependencies: + +``` +npm install +``` + +Start the server: ``` docker-compose up diff --git a/docker-compose.yml b/docker-compose.yml index 3b3fab1554..46a34039db 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,10 @@ version: '3' services: app: - build: . + image: node:10-alpine command: 'npm run dev' volumes: - .:/usr/chapter/ + working_dir: /usr/chapter/ ports: - '8000:8000'