f9c0922b2f
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 ```
17 lines
279 B
Docker
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
|