Skip to content

Commit 281641e

Browse files
committed
feat: added basic Docker
1 parent 0191bde commit 281641e

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

.dockerignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
npm-debug.log
3+
Dockerfile*
4+
docker-compose*
5+
.dockerignore
6+
.git
7+
.gitignore
8+
README.md
9+
LICENSE
10+
.vscode

Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:10-alpine
2+
3+
# Create app directory
4+
WORKDIR /usr/src/app
5+
6+
# Install app dependencies
7+
COPY package*.json ./
8+
RUN yarn install
9+
10+
# Bundle app source
11+
COPY . .
12+
13+
EXPOSE 2018
14+
CMD [ "yarn", "start" ]

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
<span> · </span>
1616
<a href="#case-studies">Case studies</a>
1717
<span> · </span>
18+
<a href="#docker">Docker<a>
19+
<span> · </span>
1820
<a href="#support">Support</a>
1921
</h3>
2022

@@ -137,6 +139,12 @@ The tool (codecrumbs) allows us to learn, document and explain a codebase much f
137139

138140
The ultimate goal is to have many case studies hosting at [https://codecrumbs.io](https://codecrumbs.io/). **The library of projects "explained with codecrumbs", the place for collaborative learning**. More features around that coming soon, stay tuned.
139141

142+
## Docker
143+
To start dockerise application run
144+
`docker build -t codecrumbs .`
145+
and once docker image will be build successfully
146+
`docker run -p 2018:2018 -d codecrumbs`
147+
140148
## Support
141149
Any support is very much appreciated! 👍 😘 ❤️
142150
If you like this project, please, **put a :star: and tweet about it**. Thanks!

docker-compose.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: '3'
2+
3+
services:
4+
codecrumbs:
5+
build: .
6+
volumes:
7+
- .:/usr/src/app
8+
- /usr/src/app/node_modules
9+
ports:
10+
- 2018:2018
11+
- 9229:9229
12+
- 8888:8888
13+
command: yarn start

0 commit comments

Comments
 (0)