ha-bridge icon indicating copy to clipboard operation
ha-bridge copied to clipboard

Docker image for Raspberry Pi using depreciated image

Open MallocArray opened this issue 2 years ago • 0 comments

The links for Docker images for the Raspberry Pi line looks to be referencing an image from resin that is depreciated https://hub.docker.com/r/resin/raspberrypi3-openjdk https://github.com/escalate/ha-bridge-raspberry-pi-docker/blob/master/Dockerfile

I'm not sure if special considerations are needed for Pi 1 and 2, but I was able to create my own Dockerfile that successfully built an image for a Raspberry Pi 4 using Java 11 and has recent security updates in the container. Should the old Pi images be retired and a new base for images be adopted?

Including my file for reference

FROM eclipse-temurin:11-jdk

WORKDIR /ha-bridge

RUN apt update && apt install wget -y
RUN wget $(curl -s https://api.github.com/repos/bwssytems/ha-bridge/releases/latest | grep 'browser_' | grep 'java11' | cut -d\" -f4)
RUN mv ha-bridge-*.jar ha-bridge-java11.jar
EXPOSE 80

ENTRYPOINT ["java","-jar","/ha-bridge/ha-bridge-java11.jar"]

MallocArray avatar Dec 21 '21 22:12 MallocArray