aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/Dockerfile.stretch
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-07 18:39:42 +0200
committerChocobozzz <me@florianbigard.com>2018-05-07 18:41:10 +0200
commitfd5e57bbe2accbdb16b6aa65337c5ef44b5bd8fb (patch)
tree7865c16ce0f4be446d0e54174ef5c210917c7f46 /support/docker/production/Dockerfile.stretch
parentd9c1882dd050f4a867a4bbfc3667424e41694ae1 (diff)
downloadPeerTube-fd5e57bbe2accbdb16b6aa65337c5ef44b5bd8fb.tar.gz
PeerTube-fd5e57bbe2accbdb16b6aa65337c5ef44b5bd8fb.tar.zst
PeerTube-fd5e57bbe2accbdb16b6aa65337c5ef44b5bd8fb.zip
Docker config directory as volume
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"]