peertube image
This commit is contained in:
parent
300d814178
commit
2d47e4c6a8
|
@ -33,7 +33,7 @@ MAIL_ADDRESS=netdata@dryusdan.fr
|
|||
MAIL_NAME="Status des services DryCat"
|
||||
MAIL_ENCRYPTION=none
|
||||
|
||||
REDIS_HOST=172.null
|
||||
REDIS_HOST=null
|
||||
REDIS_DATABASE=null
|
||||
REDIS_PORT=null
|
||||
REDIS_PASSWORD=null
|
||||
|
|
|
@ -18,25 +18,26 @@ ENV UID=991 GID=991 \
|
|||
|
||||
RUN echo "deb http://ftp.debian.org/debian jessie-backports main contrib non-free" >> /etc/apt/sources.list \
|
||||
&& apt-get update \
|
||||
&& apt-get -y --no-install-recommends install ffmpeg openssl curl git build-essential nginx-light \
|
||||
&& apt-get -y install curl \
|
||||
&& apt-get -y --no-install-recommends install ffmpeg openssl git build-essential nginx-light \
|
||||
&& apt-get clean \
|
||||
&& curl -sL https://deb.nodesource.com/setup_6.x | bash - \
|
||||
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
||||
&& apt-get update \
|
||||
&& apt-get -y install -y nodejs yarn --no-install-recommends \
|
||||
&& git clone https://github.com/Chocobozzz/PeerTube /PeerTube \
|
||||
&& git clone --branch develop https://github.com/Chocobozzz/PeerTube /PeerTube \
|
||||
&& cd /PeerTube \
|
||||
&& npm install \
|
||||
&& yarn install \
|
||||
&& npm run build \
|
||||
&& apt-get purge -y build-essential curl \
|
||||
&& apt-get remove --purge --yes build-essential curl git \
|
||||
&& apt-get autoremove -y \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /PeerTube/.git \
|
||||
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/cache/debconf/*-old \
|
||||
&& rm -rf /usr/share/man/?? \
|
||||
&& rm -rf /usr/share/man/??_*
|
||||
&& rm -rf /usr/share/man/??_*
|
||||
|
||||
|
||||
EXPOSE 8080
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
addgroup --gid ${GID} peertube && adduser --shell /bin/sh --group peertube -uid ${UID} peertube
|
||||
|
||||
#addgroup --gid ${GID} peertube && adduser --disabled-password --shell /bin/sh --gid ${GID} --uid ${UID} --gecos "" peertube
|
||||
groupadd -g ${GID} peertube && useradd -u ${UID} -M -g ${GID} peertube
|
||||
|
||||
cd /PeerTube
|
||||
|
||||
|
@ -27,4 +27,4 @@ if [ $# -eq 0 ]; then
|
|||
su - peertube -c "NODE_ENV=production npm start"
|
||||
else
|
||||
su - peertube -c "NODE_ENV=production npm $#"
|
||||
fi
|
||||
fi
|
||||
|
|
Reference in New Issue