aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/Dockerfile.stretch
diff options
context:
space:
mode:
authorkaiyou <pierre@jaury.eu>2018-01-29 08:52:20 +0100
committerChocobozzz <me@florianbigard.com>2018-01-29 08:52:20 +0100
commite8395f027b6c3e3f757c740e35b20e76c51b03bd (patch)
treeee0e761357b7407b6992600342306669de880689 /support/docker/production/Dockerfile.stretch
parent8dfd8fd7ca376e7898c912bb985a7a4a997cd966 (diff)
downloadPeerTube-e8395f027b6c3e3f757c740e35b20e76c51b03bd.tar.gz
PeerTube-e8395f027b6c3e3f757c740e35b20e76c51b03bd.tar.zst
PeerTube-e8395f027b6c3e3f757c740e35b20e76c51b03bd.zip
Add production Alpine and Debian Stretch Docker images (#225)
* First pass at a (swarm-compatible) docker image Uses an existing traefik server as a https reverse proxy. * Add example config for a Docker swarm deployment * Point to traefik config for docker compose setup * Clarify that traefik is needed for the example config * Use node:8-stretch base image and don't install yarn (The base image already contains yarn.) * Initial commit for an Alpine Docker image * Fix docker volume path * Merge #213 and #225 and move files around * Remove unnecessary dependencies from the alpine build * Update Dockerfiles to match install path, config path, etc. * Update the configuration in the example compose file * Update the configuration in the example swarm file * Remove the declared networks and volumes from the compose example, which are not strictly required * Update attachment path in the documentation * Display traefik as a suggestion and not a required dependency * Update the Docker ignored files * Fix typos reported in #225 * Move production Dockerfiles to a production directory * Add the redis configuration settings * Add Docker files to the dockerignore * Make the signup limit configurable
Diffstat (limited to 'support/docker/production/Dockerfile.stretch')
-rw-r--r--support/docker/production/Dockerfile.stretch25
1 files changed, 25 insertions, 0 deletions
diff --git a/support/docker/production/Dockerfile.stretch b/support/docker/production/Dockerfile.stretch
new file mode 100644
index 000000000..c739247a6
--- /dev/null
+++ b/support/docker/production/Dockerfile.stretch
@@ -0,0 +1,25 @@
1FROM node:8-stretch
2
3# Install dependencies
4RUN apt-get update \
5 && apt-get -y install ffmpeg \
6 && rm /var/lib/apt/lists/* -fR
7
8# Install the application
9WORKDIR /app
10
11COPY . ./
12RUN yarn install --pure-lockfile && npm run build
13
14# Configure the application
15RUN groupadd -g 991 peertube \
16 && useradd -u 991 -g peertube -d /data -m peertube
17USER peertube
18
19ENV NODE_ENV production
20ENV NODE_CONFIG_DIR /app/support/docker/production/config
21
22# Run the application
23CMD ["npm", "start"]
24VOLUME ["/data"]
25EXPOSE 9000