FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4 RUN mkdir -p /app/code/server /app/pkg WORKDIR /app/code/server RUN apt-get -y update && apt -y install ffmpeg && rm -rf /var/cache/apt /var/lib/apt/lists # install yq RUN curl -sL https://github.com/mikefarah/yq/releases/download/3.2.1/yq_linux_amd64 -o /usr/bin/yq && \ chmod +x /usr/bin/yq ARG VERSION=2.3.0 # install peertube RUN curl -sL https://github.com/Chocobozzz/PeerTube/releases/download/v${VERSION}/peertube-v${VERSION}.tar.xz | tar --strip-components 1 -Jxvf - RUN yarn install --production --pure-lockfile RUN mkdir /app/code/cli && \ curl -L https://github.com/Chocobozzz/PeerTube/archive/v${VERSION}.tar.gz | tar -zxvf - --strip-components=1 -C /app/code/cli && \ cd /app/code/cli && \ NOCLIENT=1 yarn install --pure-lockfile && \ npm run setup:cli # the json is created and managed by web ui. it overrides the yaml file (https://github.com/lorenwest/node-config/wiki/Configuration-Files) RUN ln -sf /app/data/production.yaml /app/code/server/config/production.yaml && \ ln -sf /app/data/local-production.json /app/code/server/config/local-production.json COPY production.yaml.example start.sh /app/pkg/ ENV NODE_ENV production ENV NODE_CONFIG_DIR /app/code/server/config CMD [ "/app/pkg/start.sh" ]