This repository has been archived on 2021-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Dockerfiles/peertube/Dockerfile-alpine

41 lines
1.1 KiB
Plaintext

FROM xataz/nginx
FROM xataz/node:lts
ENV UID=991 GID=991 \
HTTPS=false \
HOSTNAME=peertube.localhost \
PORT=80 \
DATABASE_HOST=localhost \
DATABASE_PORT=5432 \
DATABASE_USERNAME=peertube \
DATABASE_PASSWORD=peertube \
ADMIN_EMAIL=admin@domain.local \
SIGNUP_ENABLE=false \
TRANSCODING_ENABLE=false \
TRANSCODING_THREADS=2 \
BODY_SIZE=100M
RUN apk -U upgrade \
&& apk add -t build-dependencies \
git \
build-base \
g++ \
python \
&& apk -U add yarn ffmpeg libressl su-exec curl\
&& git clone -b develop https://github.com/Chocobozzz/PeerTube /PeerTube \
&& cd /PeerTube \
&& yarn install \
&& npm install \
&& npm run build \
&& apk del build-dependencies \
&& rm -rf /var/cache/apk/* /tmp/* /root/.gnupg /root/.cache/ /PeerTube/.git
COPY rootfs /
RUN chmod +x /usr/local/bin/startup
WORKDIR /PeerTube/
VOLUME ["/PeerTube/certs", "/PeerTube/videos", "/PeerTube/logs", "/PeerTube/previews", "/PeerTube/thumbnails", "/PeerTube/torrents"]
ENTRYPOINT ["/usr/local/bin/startup"]