orbit-db/docker/Dockerfile
Sebastiaan f9c0922b2f
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
```
2019-05-15 16:19:46 +02:00

17 lines
279 B
Docker

FROM node:10
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
WORKDIR /home/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