-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.aarch64
40 lines (35 loc) · 1.06 KB
/
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
36
37
38
39
40
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
# set version label
ARG BUILD_DATE
ARG VERSION
ARG SYNCLOUNGE_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="alex-phillips"
# environment settings
ENV HOME="/app"
WORKDIR /app
RUN \
echo "**** install build packages ****" && \
apk add --no-cache \
nodejs && \
apk add --no-cache --virtual=build-dependencies \
build-base \
npm \
python3-dev && \
echo "**** install SyncLounge ****" && \
if [ -z ${SYNCLOUNGE_RELEASE+x} ]; then \
SYNCLOUNGE_RELEASE=$(curl -sX GET "https://registry.npmjs.org/synclounge/" \
| jq -r '."dist-tags".latest'); \
fi && \
npm install -g --omit=dev synclounge@"$SYNCLOUNGE_RELEASE" --unsafe && \
npm prune --omit=dev && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
$HOME/.cache \
/tmp/*
# copy local files
COPY root/ /