Size of docker container #208
krusta4711
started this conversation in
Ideas
Replies: 1 comment
-
P.S. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When building the docker container with
docker-compose -f compose.yaml build
, the resulting image has a size of ~311 MB. This seems to be a little bit too rich to me.I'm unfortunately not a linux expert to judge the needed packages. Nevertheless I played around a little bit. For me it looks like only curl is needed as package to install. I tested the Dockerfile in line 11 with just curl:
apt-get install -y --no-install-recommends curl && \
...build it with
docker-compose -f compose.yaml build --no-cache
.This trims down the image to under 200 MB.
I started the container with
docker-compose -f compose.yaml run app /app/hc-login.py config/devices.json
.At least the
hc-login.py
starts correctly and gives me a working link. As I have no Siemens device yet, I cannot test whether the rest works too.At least the container starts with "compose up" but then throws error because of devices.json file is missing. I will check it once my dish washer arrives.
Maybe it is dumb what I'm doing here. As I said: I'm not an expert in linux. ;-)
Beta Was this translation helpful? Give feedback.
All reactions