Compare commits

..

2 Commits

Author SHA1 Message Date
dadbccbebf allow logging output of container
Some checks failed
Semantic Release and Changelog / Patch (push) Successful in 7s
Semantic Release and Changelog / Build and Publish (push) Failing after 8s
2024-02-10 21:16:23 +00:00
fa0c5dd0c5 Refactor docker file and remove cache to clean up packages after
All checks were successful
Semantic Release and Changelog / Patch (push) Successful in 9s
Semantic Release and Changelog / Build and Publish (push) Successful in 31s
2024-02-10 07:51:16 +00:00

View File

@@ -14,14 +14,20 @@ LABEL org.label-schema.vendor="Evan Richardson"
LABEL org.label-schema.docker.cmd="docker run --name=py-eagle-mqtt -e MQTT_BROKER_IP=<IP> -e MQTT_BROKER_PORT=1883 -p 22042:22042 -d evanrich/py-eagle-mqtt"
WORKDIR /app
COPY requirements.txt /app
COPY ./src/conf/logrotate/tHome /etc/logrotate.d/
ENV PYTHONPATH=/app/src/python
RUN apk --update add --no-cache logrotate \
&& apk upgrade \
&& pip3 install --no-cache-dir --upgrade pip \
&& pip3 install --no-cache-dir -r requirements.txt
RUN apk --update add --no-cache logrotate && \
apk upgrade && \
pip3 install --no-cache-dir --upgrade pip && \
pip3 install --no-cache-dir -r requirements.txt && \
rm -rf /var/cache/apk/*
COPY . /app
CMD ["/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf"]
CMD ["python3", "-u", "/app/src/bin/tHome-eagle.py", "-c", "/app/src/conf"]
EXPOSE 22042