diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-07 18:39:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-07 18:41:10 +0200 |
commit | fd5e57bbe2accbdb16b6aa65337c5ef44b5bd8fb (patch) | |
tree | 7865c16ce0f4be446d0e54174ef5c210917c7f46 /support/docker/production/Dockerfile.stretch | |
parent | d9c1882dd050f4a867a4bbfc3667424e41694ae1 (diff) | |
download | PeerTube-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.stretch | 12 |
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 | |||
57 | RUN yarn install --pure-lockfile \ | 57 | RUN yarn install --pure-lockfile \ |
58 | && npm run build | 58 | && npm run build |
59 | 59 | ||
60 | # Configure PeerTube | 60 | USER root |
61 | RUN cp /app/config/default.yaml /app/support/docker/production/config/default.yaml | 61 | |
62 | RUN mkdir /data /config | ||
63 | RUN chown -R peertube:peertube /data /config | ||
64 | |||
62 | ENV NODE_ENV production | 65 | ENV NODE_ENV production |
63 | ENV NODE_CONFIG_DIR /app/support/docker/production/config | 66 | ENV NODE_CONFIG_DIR /config |
64 | 67 | ||
65 | USER root | ||
66 | RUN mkdir /data && chown peertube:peertube /data | ||
67 | VOLUME /data | 68 | VOLUME /data |
69 | VOLUME /config | ||
68 | 70 | ||
69 | COPY ./support/docker/production/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh | 71 | COPY ./support/docker/production/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh |
70 | ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] | 72 | ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] |