mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-24 10:55:04 +00:00
This build strategy lends itself to how Rockerfiles work. In the build Dockerfile all the build utilities (e.g gcc, python) are installed and run the build process to produce some build artifacts. There are two build Dockerfiles, one for the nodejs part and one for the golang part. The build artifacts of these are combined into the runtime Dockerfile. For all this to work there is some minimal glue implemented in the Makefile. Part of this commit is a switch of the base image the runtime is based on to the minimal OpenEmbedded one produced by #198 Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
21 lines
447 B
Docker
21 lines
447 B
Docker
# Minimal runtime image
|
|
FROM resin/%%ARCH%%-supervisor-base
|
|
|
|
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
|
|
ENV LED_FILE /dev/null
|
|
ENV SUPERVISOR_IMAGE resin/%%ARCH%%-supervisor
|
|
|
|
CMD [ "/sbin/init" ]
|
|
|
|
# -*- mode: dockerfile -*-
|
|
# vi: set ft=dockerfile :
|