mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 21:57:54 +00:00
1790939046
This saves around 13MB in the resulting uncompressed docker image. Change-Type: patch Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
21 lines
435 B
Docker
21 lines
435 B
Docker
# Minimal runtime image
|
|
FROM %%BASE_IMAGE_TAG%%
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY ./build/%%ARCH%%/dist ./dist
|
|
COPY ./build/%%ARCH%%/node_modules ./node_modules
|
|
COPY ./build/%%ARCH%%/gosuper ./gosuper
|
|
COPY ./build/%%ARCH%%/rootfs-overlay/ /
|
|
|
|
VOLUME /data
|
|
|
|
ENV CONFIG_MOUNT_POINT=/boot/config.json \
|
|
LED_FILE=/dev/null \
|
|
SUPERVISOR_IMAGE=resin/%%ARCH%%-supervisor
|
|
|
|
CMD [ "/sbin/init" ]
|
|
|
|
# -*- mode: dockerfile -*-
|
|
# vi: set ft=dockerfile :
|