Skip to content

Commit 802e386

Browse files
committed
Reduced agent image size to 130mb
1 parent 176ae9b commit 802e386

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ RUN addgroup nonroot && \
1616
chown nonroot:nonroot /app
1717

1818
USER nonroot
19+
RUN mkdir -p /home/nonroot/.npm
20+
VOLUME /home/nonroot/.npm
1921
COPY package.json ./
2022
RUN npm install --production
2123
COPY --chown=nonroot:nonroot --from=build /app/built /app/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Once you've got it up and going, you can plot some pretty dashboards like this:
1313
**Known Issues**:
1414

1515
- It's super, mega pre-alpha, the product of a weekends experimentation - so don't expect it to be perfect. I plan to improve it.
16-
- It's written in [nodejs](https://nodejs.org/en) which means the docker image is 180mb. That's not huge, but it isn't golang small either.
16+
- It's written in [nodejs](https://nodejs.org/en) which means the docker image is 130mb. That's not huge, but it isn't golang small either.
1717
- If you've got nodes coming up and down frequently, eventual consistency means that you might get some test failures as an agent is testing a node that's gone (but is yet to get an updated agent list). I plan to tackle this with push agent updates.
1818

1919
## Architecture

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ services:
44
image: stono/kconmon:${VERSION:-latest}
55
build:
66
context: '.'
7-
cache_from:
8-
- stono/kconmon:latest
97
args:
108
NODEJS_VERSION: 14.4.0
119
command: 'node lib/apps/controller/index.js'

0 commit comments

Comments
 (0)