Mettre à jour 'Dockerfile.alpine'

This commit is contained in:
Dryusdan 2018-01-22 09:36:15 +01:00
parent 2e20e19047
commit a63e2c8f07
1 changed files with 10 additions and 9 deletions

View File

@ -31,20 +31,21 @@ RUN addgroup -g 991 peertube && adduser -u 991 -G peertube -s /bin/sh -D -h /hom
git \ git \
build-base \ build-base \
g++ \ g++ \
python-dev \ python-dev
make \
&& apk add vips-dev fftw-dev vips fftw --update-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ \ && apk add vips-dev fftw-dev vips fftw --update-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ \
&& apk -U add yarn ffmpeg libressl su-exec curl nodejs shadow python \ && apk -U add yarn ffmpeg libressl su-exec curl nodejs shadow python py-jinja2 bash \
&& git clone --branch ${PEERTUBE_VER} https://github.com/Chocobozzz/PeerTube /PeerTube \ && git clone --branch ${PEERTUBE_VER} https://github.com/Chocobozzz/PeerTube /PeerTube \
&& echo "****** chown ******" \ && echo "****** chown ******" \
&& chown -R peertube:peertube PeerTube \ && chown -R peertube:peertube PeerTube \
&& cd /PeerTube \ && cd /PeerTube \
&& echo "****** run npm install as user ******" \ && echo "****** run npm install as user ******" \
&& su-exec peertube:peertube npm install \ && su-exec peertube:peertube npm install \
&& echo "****** run yarn install as user ******" \ && echo "****** run yarn install as user ******" \
&& su-exec peertube:peertube yarn install \ && bash -c "su-exec peertube:peertube yarn install" \
&& echo "****** run npm run build as user ******" \ && echo "****** run npm run build as user ******" \
&& su-exec peertube:peertube npm run build \ && bash -c "su-exec peertube:peertube npm run buildé \
&& apk del git build-base \ && apk del build-dependencies \
&& rm -rf /tmp/* /PeerTube.git /var/cache/apk/* && rm -rf /tmp/* /PeerTube.git /var/cache/apk/*
EXPOSE 8080 EXPOSE 8080