Examples folder default permission

When running the container and building the examples, the following error occurs:
Error: EACCES: permission denied, open '/home/node/examples/browser/browser-webpack-example/bundle.js'

Commands used:
```
docker build -t orbit-db -f docker/Dockerfile . --no-cache
docker run -ti --rm orbit-db npm run build:examples
```
master
Sebastiaan 2019-05-15 16:19:46 +02:00 committed by GitHub
parent e16794cf22
commit f9c0922b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -3,12 +3,14 @@ FROM node:10
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
WORKDIR /home/node
USER node
COPY package.json ./
COPY examples/ ./examples
COPY src/ ./src
COPY conf/ ./conf
RUN chown -R node:node package.json examples src conf
USER node
RUN npm install babel-cli webpack \
&& npm install