-- Readme update
This commit is contained in:
parent
70805a0b2a
commit
c137bda7c4
|
@ -9,9 +9,15 @@ RUN apt-get update -qq && apt-get install -y build-essential
|
||||||
|
|
||||||
RUN mkdir /src
|
RUN mkdir /src
|
||||||
|
|
||||||
|
-###
|
||||||
|
-# Installations
|
||||||
|
-###
|
||||||
|
-# Add Gulp globally
|
||||||
|
|
||||||
RUN npm install -g gulp
|
RUN npm install -g gulp
|
||||||
RUN npm install -g nodemon
|
RUN npm install -g nodemon
|
||||||
|
|
||||||
|
# Finally, install all project Node modules
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
ADD package.json /src/package.json
|
ADD package.json /src/package.json
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
@ -21,7 +27,7 @@ EXPOSE 8080
|
||||||
###
|
###
|
||||||
# Run main command from entrypoint and parameters in CMD[]
|
# Run main command from entrypoint and parameters in CMD[]
|
||||||
###
|
###
|
||||||
# Default port to execute the entrypoint (MongoDB)
|
|
||||||
CMD [""]
|
CMD [""]
|
||||||
|
|
||||||
# Set default container command
|
# Set default container command
|
||||||
|
|
11
README.md
11
README.md
|
@ -13,15 +13,10 @@ Mainflux is an open source MIT licensed IoT cloud written in NodeJS
|
||||||
gulp
|
gulp
|
||||||
```
|
```
|
||||||
|
|
||||||
## Docker
|
## Docker compose
|
||||||
### Build image
|
### Run docker-compose up and Compose will start and run entire app.
|
||||||
```bash
|
```bash
|
||||||
sudo docker build -t=mainflux .
|
docker-compose up
|
||||||
```
|
|
||||||
|
|
||||||
## Run image
|
|
||||||
```bash
|
|
||||||
sudo docker run -i -t -d -p 8080:8080 --name=mainflux mainflux`
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
Loading…
Reference in New Issue