mirror of
https://github.com/linuxserver/docker-synclounge.git
synced 2026-02-20 08:32:00 +08:00
41 lines
1.1 KiB
Docker
41 lines
1.1 KiB
Docker
# 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/ /
|