diff options
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"] |