repair peertube
This commit is contained in:
parent
1757db2952
commit
aa0bbb8ee9
|
@ -23,7 +23,8 @@ ENV UID=991 GID=991 \
|
||||||
RESOLUTION_1080=true \
|
RESOLUTION_1080=true \
|
||||||
DEBIAN_FRONTEND=noninteractive
|
DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN echo "deb http://ftp.debian.org/debian jessie-backports main contrib non-free" >> /etc/apt/sources.list \
|
RUN echo "groupadd -g 991 peertube && useradd -u 991 -g 991 peertube \
|
||||||
|
&& 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 install curl \
|
&& apt-get -y install curl \
|
||||||
&& apt-get -y --no-install-recommends install ffmpeg openssl git build-essential nginx-light \
|
&& apt-get -y --no-install-recommends install ffmpeg openssl git build-essential nginx-light \
|
||||||
|
@ -35,9 +36,9 @@ RUN echo "deb http://ftp.debian.org/debian jessie-backports main contrib non-fre
|
||||||
&& apt-get -y install -y nodejs yarn --no-install-recommends \
|
&& apt-get -y install -y nodejs yarn --no-install-recommends \
|
||||||
&& git clone --branch develop https://github.com/Chocobozzz/PeerTube /PeerTube \
|
&& git clone --branch develop https://github.com/Chocobozzz/PeerTube /PeerTube \
|
||||||
&& cd /PeerTube \
|
&& cd /PeerTube \
|
||||||
&& npm install \
|
&& su - peertube -c "cd /PeerTube && npm install" \
|
||||||
&& yarn install \
|
&& su - peertube -c "cd /PeerTube && yarn install" \
|
||||||
&& npm run build \
|
&& su - peertube -c "cd /PeerTube && npm run build" \
|
||||||
&& apt-get remove --purge --yes build-essential curl git \
|
&& apt-get remove --purge --yes build-essential curl git \
|
||||||
&& apt-get autoremove -y \
|
&& apt-get autoremove -y \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#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
|
||||||
groupadd -g ${GID} peertube && useradd -u ${UID} -M -g ${GID} peertube
|
|
||||||
|
usermod -u ${GID} peertube
|
||||||
|
groupmod -g ${UID} peertube
|
||||||
|
|
||||||
sed -i -e 's|<https>|'${HTTPS}'|' \
|
sed -i -e 's|<https>|'${HTTPS}'|' \
|
||||||
-e 's|<hostname>|'${HOSTNAME}'|' \
|
-e 's|<hostname>|'${HOSTNAME}'|' \
|
||||||
|
|
Reference in a new issue