Create docker image from docker addon

Hi,

I try to create a docker using the NodeRed docker as build_from. To do this, it’s create a Dockerfile :

ARG BUILD_FROM=ghcr.io/hassio-addons/node-red
FROM ${BUILD_FROM}

# Copy data for add-on
COPY run.sh /
RUN chmod a+x /run.sh

HEALTHCHECK CMD exit 0

The problem is that when I launch the container and I look in it (shell), there is no file from NodeRed :

docker exec -it addon_*****n bash
bash-5.1# ls /
bin      command  data     dev      etc      home     init     lib      media    mnt      opt      package  proc     root     run      run.sh   sbin     srv      sys      tmp      usr      var
bash-5.1# ls /opt/
bash-5.1#

Is the whole Dockerfile of the from image executed and especially the RUN commands?

Thanks for your help

What exactly are you trying to do? If you’re trying to run Node Red standalone, see here.

1 Like