Hass-addons/Hello_world/Dockerfile

17 lines
314 B
Docker
Raw Normal View History

2022-07-27 14:56:23 +02:00
ARG BUILD_FROM
FROM $BUILD_FROM
2022-07-27 15:05:12 +02:00
# Install requirements for add-on
RUN \
apk add --no-cache \
python3
# Python 3 HTTP Server serves the current working dir
# So let's set it to our add-on persistent data directory.
WORKDIR /data
2022-07-27 14:56:23 +02:00
# Copy data for add-on
COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]