Skip to content

Commit 52c36ce

Browse files
committed
Added Docker file with some doc
1 parent 37ebdd9 commit 52c36ce

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#FROM ubuntu:16.04
2+
FROM node:latest
3+
RUN mkdir -p /app
4+
COPY . /app
5+
WORKDIR /app
6+
ARG DEBIAN_FRONTEND=noninteractive
7+
8+
RUN npm install -g bower
9+
RUN npm install
10+
11+
RUN adduser modular
12+
RUN chown -R modular:modular /app
13+
USER modular
14+
15+
RUN bower install
16+
17+
EXPOSE 4000
18+
19+
ENTRYPOINT ["npm", "start"]
20+

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ AngularJS, Angular2, React and Meteor versions are coming soon.
4444

4545
* [Browser support](#browser-support)
4646
* [Development](#development)
47+
* [Docker](#docker)
4748
* [Folder structure](#folder-structure)
4849
* [File types](#file-types)
4950
* [Build tasks](#build-tasks)
@@ -61,6 +62,21 @@ AngularJS, Angular2, React and Meteor versions are coming soon.
6162
Some of the components use the new Flexbox Layout module which is available in most modern browsers. Bootstrap4 is used as main framework. Please make sure that it's suitable for you: [Flexbox browser support](http://caniuse.com/#feat=flexbox).
6263

6364
<br>
65+
## Docker
66+
To build the container, you need to install docker and launch the docker daemon.
67+
After launching the daemon run the following commands from the project folder:
68+
69+
Build the image
70+
```
71+
docker build -t modular-admin .
72+
```
73+
74+
75+
Launch the container
76+
```
77+
docker run -ti -p 4000:4000 modular-admin:latest
78+
```
79+
6480
## Development
6581

6682
For building the application, you need to have [NodeJs](https://nodejs.org/en/) with npm. You also need to have [Bower](http://bower.io/) installed globally.

0 commit comments

Comments
 (0)