mirror of
https://github.com/linuxserver/docker-mstream.git
synced 2026-02-05 03:17:57 +08:00
Bot Updating Templated Files
This commit is contained in:
parent
1f90b6c083
commit
dcece5c291
@ -1,50 +0,0 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.17
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
ARG MSTREAM_RELEASE
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="chbmb"
|
||||
|
||||
ENV HOME="/config"
|
||||
|
||||
RUN \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache --upgrade \
|
||||
nodejs \
|
||||
npm \
|
||||
openssl && \
|
||||
echo "**** install app ****" && \
|
||||
mkdir -p \
|
||||
/opt/mstream && \
|
||||
if [ -z ${MSTREAM_RELEASE+x} ]; then \
|
||||
MSTREAM_RELEASE=$(curl -sX GET "https://api.github.com/repos/IrosTheBeggar/mStream/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
fi && \
|
||||
curl -o \
|
||||
/tmp/mstream.tar.gz -L \
|
||||
"https://github.com/IrosTheBeggar/mStream/archive/${MSTREAM_RELEASE}.tar.gz" && \
|
||||
tar xzf \
|
||||
/tmp/mstream.tar.gz -C \
|
||||
/opt/mstream/ --strip-components=1 && \
|
||||
cd /opt/mstream && \
|
||||
chown -R abc:abc ./ && \
|
||||
su -s /bin/sh abc -c 'HOME=/tmp npm install --omit=dev' && \
|
||||
npm link && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf /opt/mstream/save/sync && \
|
||||
ln -s /config/sync /opt/mstream/save/sync && \
|
||||
rm -rf \
|
||||
$HOME/.cache \
|
||||
/tmp/* \
|
||||
/tmp/.npm
|
||||
|
||||
# add local files
|
||||
COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 3000
|
||||
VOLUME /config
|
||||
Loading…
x
Reference in New Issue
Block a user