Skip to content

Commit 588be1f

Browse files
committed
Tweaks to docker build
Readme update, mount bower_components
1 parent b4f69f6 commit 588be1f

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,6 @@ Some of the components use the new Flexbox Layout module which is available in m
6363

6464
<br>
6565

66-
## Docker
67-
68-
To build the container, you need to install docker and docker-compose than launch the docker daemon.
69-
After launching the daemon run the following commands from the project folder:
70-
71-
Build the image
72-
```
73-
docker-compose build
74-
```
75-
76-
Launch the container
77-
```
78-
docker-compose up
79-
```
8066

8167
## Development
8268

@@ -108,6 +94,21 @@ Open the project [http://localhost:4000](http://localhost:4000).
10894

10995
> The project is built by Gulp. You can read more info in [Build Tasks](#build-tasks) section
11096
97+
## Running in Docker
98+
99+
To build the container, you need to install docker and docker-compose than launch the docker daemon.
100+
After launching the daemon run the following commands from the project folder:
101+
102+
Build the image
103+
```
104+
docker-compose build
105+
```
106+
107+
Launch the container
108+
```
109+
docker-compose up
110+
```
111+
111112
<br>
112113
## Folder Structure
113114

docker-compose.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
version: '3'
22

33
services:
4-
node:
5-
build:
6-
context: .
7-
volumes:
8-
- .:/app
9-
# http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html
10-
- /app/node_modules
11-
ports:
12-
# BrowserSync port.
13-
- "4000:4000"
4+
node:
5+
build:
6+
context: .
7+
volumes:
8+
- .:/app
9+
# http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html
10+
- /app/node_modules
11+
- /app/bower_components
12+
ports:
13+
# Expose container port.
14+
- "4000:4000"
1415

0 commit comments

Comments
 (0)