Remove old Dockerfiles for deployment and create a new one that only includes the statically linked binaries we need. This creates an image that is ~22MB in size.
12 lines
281 B
Docker
12 lines
281 B
Docker
FROM scratch
|
|
MAINTAINER dengnan@google.com vmarmol@google.com
|
|
|
|
# NOTE: Run prepare.sh before building this Docker image.
|
|
|
|
# Grab lmctfy and cadvisor from the staging directory.
|
|
ADD lmctfy /usr/bin/lmctfy
|
|
ADD cadvisor /usr/bin/cadvisor
|
|
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/usr/bin/cadvisor"]
|