-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Dockerfile
25 lines (21 loc) · 926 Bytes
/
Dockerfile
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
FROM lsiobase/ubuntu:jammy-4503a628-ls98
# Pulling TARGET_ARCH from build arguments and setting ENV variable
ARG TARGETARCH
ENV ARCH_VAR=$TARGETARCH
# Add Supervisor
RUN apt-get update && apt-get install -y \
supervisor \
libssl3 \
libssl-dev \
unzip
COPY root/ /
# Grab latest version of the app, extract binaries, cleanup tmp dir
RUN if [ "$ARCH_VAR" = "amd64" ]; then ARCH_VAR=linux-x86_64; elif [ "$ARCH_VAR" = "arm64" ]; then ARCH_VAR=linux-aarch64; fi \
&& curl -s https://api.github.com/repos/philippe44/AirConnect/releases/latest | grep browser_download_url | cut -d '"' -f 4 | xargs curl -L -o airconnect.zip \
&& unzip airconnect.zip -d /tmp/ \
&& mv /tmp/airupnp-$ARCH_VAR /usr/bin/airupnp-docker \
&& mv /tmp/aircast-$ARCH_VAR /usr/bin/aircast-docker \
&& chmod +x /usr/bin/airupnp-docker \
&& chmod +x /usr/bin/aircast-docker \
&& rm -r /tmp/*
ENTRYPOINT ["/init"]