Skip to content

Commit 5a0724a

Browse files
committed
Update Dockerfile
1 parent 0965994 commit 5a0724a

File tree

2 files changed

+23
-39
lines changed

2 files changed

+23
-39
lines changed

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM python:3-alpine
2+
3+
ARG BUILD_VERSION
4+
5+
# Create config volume
6+
VOLUME /config
7+
8+
# Create Working Directory
9+
WORKDIR /app
10+
11+
# Install enoceanmqtt and requirements
12+
RUN apk add --no-cache git
13+
RUN python3 -m pip install --upgrade pip && \
14+
pip3 install pyyaml==6.0.1 && \
15+
pip3 install tinydb==4.7.1 && \
16+
pip3 install paho-mqtt==1.6.1 && \
17+
pip3 install git+https://github.com/mak-gitdev/enocean.git && \
18+
pip3 install git+https://github.com/embyt/enocean-mqtt.git
19+
20+
COPY HA_enoceanmqtt HA_enoceanmqtt/
21+
22+
# Set entrypoint
23+
ENTRYPOINT [ "python", "-m", "HA_enoceanmqtt.main", "/config/enoceanmqtt.conf" ]

docker/Dockerfile

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)