fixed up dockerfile run.sh
This commit is contained in:
1 parent
0a89ca0deb
commit
b202012570
3 files changed
+15
-13
No files matched your search
+12
-10
@@ -4,7 +4,7 @@ ARG BUILD_VERSION
|
||||
|
||||
# <--- Image Setup -->
|
||||
FROM homeassistant/${BUILD_ARCH}-base-python:3.9-alpine3.14
|
||||
WORKDIR /data
|
||||
WORKDIR /app
|
||||
|
||||
# <--- System Wide Dependencies -->
|
||||
ENV LANG C.UTF-8
|
||||
@@ -16,20 +16,21 @@ RUN apk add --no-cache \
|
||||
RUN pip install -U wheel setuptools pip
|
||||
|
||||
# <--- Python Dependencies -->
|
||||
COPY api/setup.py /data/setup.py
|
||||
RUN pip install . /data
|
||||
COPY api/setup.py /app/setup.py
|
||||
RUN pip install . /app
|
||||
|
||||
# <--- Webapp Build -->
|
||||
COPY webapp/ /data/web-builder
|
||||
RUN cd /data/web-builder && \
|
||||
COPY webapp/ /app/web-builder
|
||||
RUN cd /app/web-builder && \
|
||||
npm install && \
|
||||
npm run build && \
|
||||
cp -r /data/web-builder/build /data/web && \
|
||||
rm -rf /data/web-builder
|
||||
cp -r /app/web-builder/build /app/web && \
|
||||
rm -rf /app/web-builder
|
||||
|
||||
# <--- Api Code -->
|
||||
COPY api/src /data/src
|
||||
COPY run.sh run.sh
|
||||
COPY api/src /app/src
|
||||
COPY run.sh /app/run.sh
|
||||
RUN chmod +x /app/run.sh
|
||||
|
||||
# <--- Environment Variables -->
|
||||
ENV HASSIO_TOKEN ""
|
||||
@@ -42,5 +43,6 @@ EXPOSE 8000
|
||||
LABEL \
|
||||
io.hass.type="addon" \
|
||||
io.hass.arch="armhf|aarch64|i386|amd64"
|
||||
CMD [ "/data/run.sh" ]
|
||||
|
||||
CMD [ "/app/run.sh" ]
|
||||
|
||||
+2
-1
@@ -1,5 +1,5 @@
|
||||
name: Shortumation
|
||||
version: 0.0.6f
|
||||
version: 0.0.6g3
|
||||
slug: shortumation
|
||||
url: "https://github.com/asosnovsky/Shortumation"
|
||||
description: "A homeassitant addon which provides better UI for automations & scripts."
|
||||
@@ -14,6 +14,7 @@ boot: auto
|
||||
ingress: true
|
||||
ingress_port: 8000
|
||||
ingress_entry: "/web"
|
||||
webgui: "http://[HOST]:[PORT:2839]/web"
|
||||
panel_icon: mdi:home-automation
|
||||
hassio_role: manager
|
||||
auth_api: true
|
||||
|
||||
Reference in new issue
Block a user