Skip to content

Commit ed30193

Browse files
author
Orjiewuru Kingdom
committed
update docker file, add makefile, fix docker version number
1 parent 54914c7 commit ed30193

File tree

5 files changed

+47
-8164
lines changed

5 files changed

+47
-8164
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:carbon
22

3-
LABEL maintainer="KINGDOM ISAAC"
4-
LABEL version="1.0"
3+
LABEL maintainer="Orjiewuru Kingdom (kingisaac95)"
4+
LABEL version="0.1.1"
55

66
ENV HOME=/app
77
WORKDIR $HOME

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build:
2+
webpack --mode production
3+
4+
build-docker:
5+
docker build . -t react-webpack-starter
6+
7+
run-docker:
8+
docker run -p 8080:8080 -v rws:/app react-webpack-starter:la

README.md

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,45 @@ Run Coverage
4545
npm run report-coverage
4646
```
4747

48+
## Docker
49+
50+
Build the image with the command
51+
52+
```sh
53+
docker build . -t react-webpack-starter
54+
```
55+
56+
This builds the image with the tag `react-webpack-starter`. Once this is completed, you can instantiate the container with the image with the command
57+
58+
```sh
59+
docker run -p 8080:8080 -v rws:/app react-webpack-starter:latest
60+
```
61+
62+
## Using Makefile
63+
64+
Build Docker Image
65+
66+
```sh
67+
make build-docker
68+
```
69+
70+
Run Docker Image
71+
72+
```sh
73+
make run-docker
74+
```
75+
76+
Generate Production Build
77+
78+
```sh
79+
make build
80+
```
81+
4882
## Release History
4983

5084
* 0.1.1
85+
* Dockerize application
86+
* Add Makefile
5187
* Update Readme and add badges
5288
* Setup Travis build and add tests
5389
* 0.1.0
@@ -56,17 +92,6 @@ npm run report-coverage
5692
* 0.0.1
5793
* Work in progress
5894

59-
### Docker
60-
61-
Build the image with the command
62-
```sh
63-
docker build . -t react-webpack-start
64-
```
65-
This builds the image with the tag `react-webpack-start`. Once this is completed, you can instantiate the container with the image with the command
66-
```sh
67-
docker run -p 8080:8080 -v rws:/app react-webpack-start:latest
68-
```
69-
7095
## Meta
7196

7297
Orjiewuru Kingdom – [@kingisaac95](https://twitter.com/kingisaac95)[email protected]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"report-coverage": "jest --env=jsdom --coverage --coverageReporters=text-lcov | coveralls"
1111
},
1212
"keywords": [],
13-
"author": "kingisaac95",
13+
"author": "Orjiewuru Kingdom (kingisaac95)",
1414
"license": "MIT",
1515
"devDependencies": {
1616
"babel-core": "^6.26.3",

0 commit comments

Comments
 (0)