Compare commits
2 Commits
master
...
dockerfile
Author | SHA1 | Date | |
---|---|---|---|
|
cfab6e0dff | ||
|
bac1f7e27e |
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM node:latest
|
||||
|
||||
RUN mkdir -p /opt/openkarotz-emulator
|
||||
COPY . /opt/openkarotz-emulator
|
||||
|
||||
WORKDIR /opt/openkarotz-emulator
|
||||
EXPOSE 80
|
||||
|
||||
CMD node index.js
|
||||
|
24
README.md
24
README.md
@@ -39,7 +39,11 @@ The following Apps are available:
|
||||
- moods
|
||||
|
||||
|
||||
## Usage ##
|
||||
## Build & Run ##
|
||||
|
||||
Can be installed natively or via Docker.
|
||||
|
||||
### Native ###
|
||||
|
||||
1. Install [Node.js](http://nodejs.org/).
|
||||
|
||||
@@ -47,6 +51,20 @@ The following Apps are available:
|
||||
|
||||
node index.js
|
||||
|
||||
3. Open web browser on [http://localhost](http://localhost) to view available APIs.
|
||||
### Docker ###
|
||||
|
||||
4. Call any of the APIs from your application, eg. [http://localhost/cgi-bin/status](http://localhost/cgi-bin/status)
|
||||
1. Install Docker
|
||||
|
||||
2. Build:
|
||||
|
||||
docker build -t openkarotz-emulator .
|
||||
|
||||
3. Run:
|
||||
|
||||
docker run -p 80:80 -it openkarotz-emulator
|
||||
|
||||
## Usage ##
|
||||
|
||||
1. Open web browser on [http://localhost](http://localhost) to view available APIs.
|
||||
|
||||
2. Call any of the APIs from your application, eg. [http://localhost/cgi-bin/status](http://localhost/cgi-bin/status)
|
||||
|
Reference in New Issue
Block a user