Skip to content

Commit f78eb1c

Browse files
committed
Docker typos
1 parent 4335560 commit f78eb1c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

emhass/Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
## EMHASS-Add-On Docker
2-
32
#build_version options are: addon (default), addon-git
43
ARG build_version=addon
54
#see build.yaml for all docker images according to host architecture
@@ -44,16 +43,15 @@ RUN apt-get update \
4443
#specify hdf5
4544
RUN ln -s /usr/include/hdf5/serial /usr/include/hdf5/include && export HDF5_DIR=/usr/include/hdf5
4645

47-
#install packages from pip, use piwheels if arm
46+
#install packages from pip, use piwheels if arm 32bit
4847
RUN [[ "${BUILD_ARCH}" == "armhf" || "${BUILD_ARCH}" == "armv7" ]] && pip3 install --index-url=https://www.piwheels.org/simple --no-cache-dir --break-system-packages -r requirements.txt || pip3 install --no-cache-dir --break-system-packages -r requirements.txt
4948

50-
#try symlink apt cbc to pulp cbc in python directory (for 32bit)
51-
RUN [[ "${BUILD_ARCH}" == "armhf" ]] && ln -sf /usr/bin/cbc /usr/local/lib/python3.11/dist-packages/pulp/solverdir/cbc/linux/32/cbc || echo "cbc symlink didnt work/not required"
49+
#try, symlink apt cbc, to pulp cbc, in python directory (for 32bit)
50+
RUN [[ "${BUILD_ARCH}" == "armhf" || "${BUILD_ARCH}" == "armv7" ]] && ln -sf /usr/bin/cbc /usr/local/lib/python3.11/dist-packages/pulp/solverdir/cbc/linux/32/cbc || echo "cbc symlink didnt work/not required"
5251

53-
#if armv7 try install libatomic1 to fix scipy issue
52+
#if armv7, try install libatomic1 to fix scipy issue
5453
RUN [[ "${BUILD_ARCH}" == "armv7" ]] && apt-get update && apt-get install libatomic1 || echo "libatomic1 cant be installed"
5554

56-
5755
#remove build only packages
5856
RUN apt-get purge -y --auto-remove \
5957
git \
@@ -74,7 +72,7 @@ RUN apt-get purge -y --auto-remove \
7472
COPY config_emhass.yaml /app/
7573

7674
#-------------------------
77-
#EMHASS-ADDON Default (EMHASS from requirements)
75+
#EMHASS-Add-on Default
7876
FROM base as addon
7977

8078
LABEL \
@@ -87,7 +85,7 @@ LABEL \
8785
ENTRYPOINT python3 -m emhass.web_server --addon True --url http://supervisor/core/api --key $SUPERVISOR_TOKEN
8886

8987
#-----------
90-
#EMHASS-ADD-ON testing with git
88+
#EMHASS-Add-on testing with git
9189
FROM addon as addon-git
9290
ARG build_repo=https://github.com/davidusb-geek/emhass.git
9391
ARG build_branch=master

0 commit comments

Comments
 (0)