-FROM node:10-stretch-slim
+FROM node:10-buster-slim
# Allow to pass extra options to the npm run build
# eg: --light --light-fr to not build all client languages
&& useradd -r -g peertube -m peertube
# Install PeerTube
+COPY --chown=peertube:peertube . /app
WORKDIR /app
-COPY . ./
-RUN chown -R peertube:peertube /app
USER peertube