peertube image

This commit is contained in:
root 2017-11-03 09:13:35 +00:00
parent 300d814178
commit 2d47e4c6a8
3 changed files with 9 additions and 8 deletions

View File

@ -33,7 +33,7 @@ MAIL_ADDRESS=netdata@dryusdan.fr
MAIL_NAME="Status des services DryCat" MAIL_NAME="Status des services DryCat"
MAIL_ENCRYPTION=none MAIL_ENCRYPTION=none
REDIS_HOST=172.null REDIS_HOST=null
REDIS_DATABASE=null REDIS_DATABASE=null
REDIS_PORT=null REDIS_PORT=null
REDIS_PASSWORD=null REDIS_PASSWORD=null

View File

@ -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 \ RUN echo "deb http://ftp.debian.org/debian jessie-backports main contrib non-free" >> /etc/apt/sources.list \
&& apt-get update \ && 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 \ && apt-get clean \
&& curl -sL https://deb.nodesource.com/setup_6.x | bash - \ && curl -sL https://deb.nodesource.com/setup_6.x | bash - \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ && 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 \ && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \ && apt-get update \
&& apt-get -y install -y nodejs yarn --no-install-recommends \ && 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 \ && cd /PeerTube \
&& npm install \ && npm install \
&& yarn install \ && yarn install \
&& npm run build \ && 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 autoremove -y \
&& apt-get clean \ && apt-get clean \
&& rm -rf /PeerTube/.git \ && rm -rf /PeerTube/.git \
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/cache/debconf/*-old \ && 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/??_* && rm -rf /usr/share/man/??_*
EXPOSE 8080 EXPOSE 8080

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/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 cd /PeerTube
@ -27,4 +27,4 @@ if [ $# -eq 0 ]; then
su - peertube -c "NODE_ENV=production npm start" su - peertube -c "NODE_ENV=production npm start"
else else
su - peertube -c "NODE_ENV=production npm $#" su - peertube -c "NODE_ENV=production npm $#"
fi fi