PeerTube/support/docker/production/Dockerfile.alpine

25 lines
599 B
Docker
Raw Normal View History

FROM node:8-alpine
# Install dependencies
RUN apk add --no-cache ffmpeg openssl bash make g++ git \
&& apk add --no-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/ vips-dev fftw-dev
# Install the application
WORKDIR /app
COPY . ./
RUN bash -c 'yarn install --pure-lockfile && npm run build'
# Configure the application
RUN addgroup -g 991 peertube \
&& adduser -D -u 991 -G peertube -h /data 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