blob: c739247a64121c8d4f41d7499f2d39e362b5249c (
plain) (
tree)
|
|
FROM node:8-stretch
# Install dependencies
RUN apt-get update \
&& apt-get -y install ffmpeg \
&& rm /var/lib/apt/lists/* -fR
# Install the application
WORKDIR /app
COPY . ./
RUN yarn install --pure-lockfile && npm run build
# Configure the application
RUN groupadd -g 991 peertube \
&& useradd -u 991 -g peertube -d /data -m peertube
USER peertube
ENV NODE_ENV production
ENV NODE_CONFIG_DIR /app/support/docker/production/config
# Run the application
CMD ["npm", "start"]
VOLUME ["/data"]
EXPOSE 9000
|