aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/Dockerfile.stretch
diff options
context:
space:
mode:
Diffstat (limited to 'support/docker/production/Dockerfile.stretch')
-rw-r--r--support/docker/production/Dockerfile.stretch12
1 files changed, 7 insertions, 5 deletions
diff --git a/support/docker/production/Dockerfile.stretch b/support/docker/production/Dockerfile.stretch
index a8c3d62ce..6edd33546 100644
--- a/support/docker/production/Dockerfile.stretch
+++ b/support/docker/production/Dockerfile.stretch
@@ -57,14 +57,16 @@ USER peertube
57RUN yarn install --pure-lockfile \ 57RUN yarn install --pure-lockfile \
58 && npm run build 58 && npm run build
59 59
60# Configure PeerTube 60USER root
61RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml 61
62RUN mkdir /data /config
63RUN chown -R peertube:peertube /data /config
64
62ENV NODE_ENV production 65ENV NODE_ENV production
63ENV NODE_CONFIG_DIR /app/support/docker/production/config 66ENV NODE_CONFIG_DIR /config
64 67
65USER root
66RUN mkdir /data && chown peertube:peertube /data
67VOLUME /data 68VOLUME /data
69VOLUME /config
68 70
69COPY ./support/docker/production/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh 71COPY ./support/docker/production/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
70ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] 72ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]