-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile.aarch64
35 lines (31 loc) · 980 Bytes
/
Dockerfile.aarch64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
# set version label
ARG BUILD_DATE
ARG VERSION
ARG HABRIDGE_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="saarg"
# install packages
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache \
libcap \
nss \
openjdk8-jre \
sqlite-libs && \
echo "**** install ha-bridge ****" && \
if [ -z ${HABRIDGE_RELEASE+x} ]; then \
HABRIDGE_RELEASE=$(curl -sL "https://api.github.com/repos/bwssytems/ha-bridge/releases/latest" \
| jq -r '.tag_name'); \
fi && \
mkdir -p \
/app && \
curl -o \
/app/ha-bridge.jar -L \
"https://github.com/bwssytems/ha-bridge/releases/download/${HABRIDGE_RELEASE}/ha-bridge-${HABRIDGE_RELEASE:1}.jar" && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version
# copy local files
COPY root/ /
# ports and volumes
EXPOSE 8080
VOLUME /config