mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-29 01:58:54 +00:00
9e327bf7a6
This commit changes the automation scripts so that the base image is built together with the rest of the supervisor. We use a hash of the contents of the base-image folder as tag for the base image so that unnecessary rebuilds are avoided. The build scripts are also modified to always clean up the resulting base image and the image used to build it. We use docker pull and push to enable caching. Change-Type: patch Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
21 lines
433 B
Docker
21 lines
433 B
Docker
# Minimal runtime image
|
|
FROM %%BASE_IMAGE_TAG%%
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY ./build/%%ARCH%%/src ./src
|
|
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 :
|