additional docker fields

This commit is contained in:
root committed 2022-01-05 16:32:51 -05:00
1 parent b43aa6c181
commit 4558620553
2 files changed
+10 -2

No files matched your search

+8
View File
@@ -1,4 +1,5 @@
ARG BUILD_FROM
ARG BUILD_VERSION
# ================
# Python Build Stage
# ================
@@ -38,7 +39,14 @@ COPY api/src /data/src
ENV HASSIO_TOKEN ""
ENV BUILD_VERSION $BUILD_VERSION
EXPOSE 8000
LABEL \
io.hass.version="${BUILD_VERSION}" \
io.hass.type="addon" \
io.hass.arch="armhf|aarch64|i386|amd64"
CMD [ "/data/venv/bin/python", "-m", "uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "8000" ]