Commit 6f2417a
committed
clean & optimize Dockerfile:
General best practices:
* Use a tag on our base image to reduce chance of random breakage
* Add maintainer info
CC best practices (https://github.com/codeclimate/spec/blob/master/SPEC.md#packaging):
* declare /code as a VOLUME
* make /code the WORKDIR
Also:
* rm git after npm install: git is only needed for the npm install,
so we may as well remove it after to shave a bit off the final image
size
* With the WORKDIR change, the `make test` task had to be adjusted1 parent 3d7f8a7 commit 6f2417a
2 files changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | | - | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | | - | |
13 | | - | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
0 commit comments