mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-07 22:56:36 +00:00
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 ```
This commit is contained in:
parent
e16794cf22
commit
f9c0922b2f
@ -3,12 +3,14 @@ FROM node:10
|
|||||||
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
|
ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
|
||||||
|
|
||||||
WORKDIR /home/node
|
WORKDIR /home/node
|
||||||
USER node
|
|
||||||
|
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
COPY examples/ ./examples
|
COPY examples/ ./examples
|
||||||
COPY src/ ./src
|
COPY src/ ./src
|
||||||
COPY conf/ ./conf
|
COPY conf/ ./conf
|
||||||
|
|
||||||
|
RUN chown -R node:node package.json examples src conf
|
||||||
|
USER node
|
||||||
|
|
||||||
RUN npm install babel-cli webpack \
|
RUN npm install babel-cli webpack \
|
||||||
&& npm install
|
&& npm install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user