]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/docker/production/Dockerfile.stretch
Add link to server admin tools in readme
[github/Chocobozzz/PeerTube.git] / support / docker / production / Dockerfile.stretch
index 999ab9da4e59a65c4d69386d6298e6d8bcaa63f9..6edd33546cefbcc53930805f06f39972000db57a 100644 (file)
@@ -49,23 +49,24 @@ RUN set -ex; \
 
 # Install PeerTube
 WORKDIR /app
-RUN chown peertube:peertube /app
-
-COPY --chown=peertube:peertube . ./
+COPY . ./
+RUN chown -R peertube:peertube /app
 
 USER peertube
 
 RUN yarn install --pure-lockfile \
     && npm run build
 
-# Configure PeerTube
-RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml
+USER root
+
+RUN mkdir /data /config
+RUN chown -R peertube:peertube /data /config
+
 ENV NODE_ENV production
-ENV NODE_CONFIG_DIR /app/support/docker/production/config
+ENV NODE_CONFIG_DIR /config
 
-USER root
-RUN mkdir /data && chown peertube:peertube /data
 VOLUME /data
+VOLUME /config
 
 COPY ./support/docker/production/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
 ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]