I went through the tutorial on making addons.
The examples works fine, but when I try to add a pre-made python code, I cannot get it to run
My Dockerfile looks like this:
FROM %%BASE_IMAGE%%
ENV LANG C.UTF-8
RUN apk add --no-cache python3
'# Copy data for add-on
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ “/run.sh” ]
My config.json looks like this:
{
“name”: “Sector Alarm”,
“version”: “1.1.4”,
“slug”: “sector_alarm”,
“description”: “Testing Sector Alarm Integration”,
“startup”: “before”,
“boot”: “auto”,
“options”: {},
“schema”: {}
}
And my run.sh looks like this:
python3 sectoralarm
Where “sectoralarm” is the .py file to be run.
When installing/running the addon, I get the following error:
starting version 3.2.2
python3: can’t open file ‘sectoralarm’: [Errno 2] No such file or directory